mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-20 10:02:30 +02:00
Deal with some duplicated code, plus some collateral optimization.
This commit is contained in:
1 parent
f2242c3567
commit
1e3ce10290
2 files changed
+244
-234
No files matched your search
@@ -528,6 +528,8 @@ function memoize(obj, key, getter) {
|
||||
obj.__defineGetter__(key, function replace() (
|
||||
Class.replaceProperty(this.instance || this, key, null),
|
||||
Class.replaceProperty(this.instance || this, key, getter.call(this, key))));
|
||||
obj.__defineSetter__(key, function replace(val)
|
||||
Class.replaceProperty(this.instance || this, key, val));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user