mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-09 15:25:46 +01:00
Better list option parsing and serialization.
This commit is contained in:
@@ -474,8 +474,9 @@ function call(fn) {
|
||||
* value of the property.
|
||||
*/
|
||||
function memoize(obj, key, getter) {
|
||||
obj.__defineGetter__(key, function ()
|
||||
Class.replaceProperty(this, key, getter.call(this, key)));
|
||||
obj.__defineGetter__(key, function () (
|
||||
Class.replaceProperty(this, key, null),
|
||||
Class.replaceProperty(this, key, getter.call(this, key))));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user