mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-16 05:03:32 +01:00
Replace expression closures (function declarations).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -354,7 +354,9 @@ var History = Module("history", {
|
||||
completion.addUrlCompleter("history", "History", completion.history);
|
||||
},
|
||||
mappings: function initMappings() {
|
||||
function bind(...args) apply(mappings, "add", [config.browserModes].concat(args));
|
||||
function bind(...args) {
|
||||
return apply(mappings, "add", [config.browserModes].concat(args));
|
||||
}
|
||||
|
||||
bind(["<C-o>"], "Go to an older position in the jump list",
|
||||
function ({ count }) { history.stepTo(-Math.max(count, 1), true); },
|
||||
|
||||
Reference in New Issue
Block a user