mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-31 11:02:37 +01:00
Replace Array.slice conversions of the arguments object with rest parameters.
This commit is contained in:
@@ -855,8 +855,7 @@ var JavaScript = Module("javascript", {
|
||||
mappings: function initMappings(dactyl, modules, window) {
|
||||
const { mappings, modes } = modules;
|
||||
|
||||
function bind() mappings.add.apply(mappings,
|
||||
[[modes.REPL]].concat(Array.slice(arguments)))
|
||||
function bind(...args) mappings.add.apply(mappings, [[modes.REPL]].concat(args))
|
||||
|
||||
bind(["<Return>"], "Accept the current input",
|
||||
function ({ self }) { self.accept(); });
|
||||
|
||||
Reference in New Issue
Block a user