1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 20:34:11 +01:00

More lazy instantiation. Look out for breakage.

This commit is contained in:
Kris Maglione
2011-02-03 09:04:23 -05:00
parent 346cf2531a
commit 4a09c97eb1
10 changed files with 66 additions and 39 deletions

View File

@@ -172,7 +172,7 @@ var MapHive = Class("MapHive", {
extra = extra || {};
let map = Map(modes, keys, description, action, extra);
map.definedAt = commands.getCaller(Components.stack.caller);
map.definedAt = Commands.getCaller(Components.stack.caller);
map.hive = this;
if (this.name !== "builtin")
@@ -344,7 +344,7 @@ var Mappings = Module("mappings", {
*/
add: function () {
let map = this.builtin.add.apply(this.builtin, arguments);
map.definedAt = commands.getCaller(Components.stack.caller);
map.definedAt = Commands.getCaller(Components.stack.caller);
return map;
},
@@ -361,7 +361,7 @@ var Mappings = Module("mappings", {
*/
addUserMap: function () {
let map = this.user.add.apply(this.user, arguments);
map.definedAt = commands.getCaller(Components.stack.caller);
map.definedAt = Commands.getCaller(Components.stack.caller);
return map;
},