mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 17:14:12 +01:00
Replace Array.slice conversions of the arguments object with rest parameters.
This commit is contained in:
@@ -352,7 +352,7 @@ var History = Module("history", {
|
||||
completion.addUrlCompleter("history", "History", completion.history);
|
||||
},
|
||||
mappings: function initMappings() {
|
||||
function bind() mappings.add.apply(mappings, [config.browserModes].concat(Array.slice(arguments)));
|
||||
function bind(...args) mappings.add.apply(mappings, [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