1
0
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:
Kris Maglione
2010-09-24 15:24:21 -04:00
parent fa20629524
commit 0753c9505e
8 changed files with 121 additions and 66 deletions

View File

@@ -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))));
}
/**