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:
@@ -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)
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user