mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-27 14:42:27 +01:00
Replace Array.slice conversions of the arguments object with rest parameters.
This commit is contained in:
@@ -1324,8 +1324,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), {
|
||||
},
|
||||
{ count: true });
|
||||
|
||||
let bind = function bind() mappings.add.apply(mappings,
|
||||
[[modes.AUTOCOMPLETE]].concat(Array.slice(arguments)));
|
||||
let bind = function bind(...args) mappings.add.apply(mappings, [[modes.AUTOCOMPLETE]].concat(args));
|
||||
|
||||
bind(["<Esc>"], "Return to Insert mode",
|
||||
function () Events.PASS_THROUGH);
|
||||
|
||||
Reference in New Issue
Block a user