1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-12 00:35:45 +01:00

Give up and add key chains to 'passkeys'. Also add <A-b> to execute a builtin mapping. Closes issue #189.

This commit is contained in:
Kris Maglione
2011-02-19 17:32:55 -05:00
parent 019504e11c
commit 1dcbf88509
6 changed files with 80 additions and 30 deletions

View File

@@ -525,12 +525,17 @@ function memoize(obj, key, getter) {
return obj;
}
obj.__defineGetter__(key, function g_replaceProperty() (
Class.replaceProperty(this.instance || this, key, null),
Class.replaceProperty(this.instance || this, key, getter.call(this, key))));
Object.defineProperty(obj, key, {
configurable: true,
enumerable: true,
obj.__defineSetter__(key, function s_replaceProperty(val)
Class.replaceProperty(this.instance || this, key, val));
get: function g_replaceProperty() (
Class.replaceProperty(this.instance || this, key, null),
Class.replaceProperty(this.instance || this, key, getter.call(this, key))),
set: function s_replaceProperty(val)
Class.replaceProperty(this.instance || this, key, val)
});
}
/**