Better list option parsing and serialization.

This commit is contained in:
Kris Maglione committed 2010-09-24 15:24:21 -04:00
1 parent fa20629524
commit 0753c9505e
8 files changed
+121 -66

No files matched your search

+3 -2
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))));
}
/**