1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 10:15:46 +01:00

Cleanup crufty apply code.

This commit is contained in:
Kris Maglione
2015-02-21 22:43:41 -08:00
parent 7ee579200f
commit 1ee5668cac
26 changed files with 65 additions and 69 deletions

View File

@@ -414,7 +414,7 @@ var Mappings = Module("mappings", {
group = this.user;
}
let map = group.add.apply(group, arguments);
let map = apply(group, "add", arguments);
map.definedAt = contexts.getCaller(Components.stack.caller);
return map;
},
@@ -431,7 +431,7 @@ var Mappings = Module("mappings", {
* @optional
*/
addUserMap: deprecated("group.mappings.add", function addUserMap() {
let map = this.user.add.apply(this.user, arguments);
let map = apply(this.user, "add", arguments);
map.definedAt = contexts.getCaller(Components.stack.caller);
return map;
}),