mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 05:15:47 +01:00
Replace Array.slice conversions of the arguments object with rest parameters.
This commit is contained in:
@@ -15,8 +15,7 @@ defineModule("addons", {
|
||||
this.lazyRequire("completion", ["completion"]);
|
||||
lazyRequire("template", ["template"]);
|
||||
|
||||
var callResult = function callResult(method) {
|
||||
let args = Array.slice(arguments, 1);
|
||||
var callResult = function callResult(method, ...args) {
|
||||
return function (result) { result[method].apply(result, args); };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user