mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 22:54:12 +01:00
Cleanup crufty apply code.
This commit is contained in:
@@ -450,7 +450,7 @@ var Modes = Module("modes", {
|
||||
for (let mode of array.iterValues(queue))
|
||||
if (!seen.add(mode)) {
|
||||
res.push(mode);
|
||||
queue.push.apply(queue, mode.bases);
|
||||
apply(queue, "push", mode.bases);
|
||||
}
|
||||
return res;
|
||||
}),
|
||||
@@ -649,7 +649,7 @@ var Modes = Module("modes", {
|
||||
},
|
||||
prefs: function initPrefs() {
|
||||
prefs.watch("accessibility.browsewithcaret",
|
||||
function () { modes.onCaretChange.apply(modes, arguments); });
|
||||
function () { apply(modes, "onCaretChange", arguments); });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user