summaryrefslogtreecommitdiff
path: root/common/modules
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-08-10 10:07:05 -0400
committerKris Maglione <maglione.k@gmail.com>2011-08-10 10:07:05 -0400
commit98bb3efa2e076db021414ebcad652712516e1182 (patch)
tree4b23c3b08f889708b2addc756a849ea0423963e2 /common/modules
parentfd9fa1ebe9e8c64472ee68fcd6dd61ca1057df85 (diff)
downloadpentadactyl-98bb3efa2e076db021414ebcad652712516e1182.tar.gz
Fix another DTD error.
--HG-- extra : rebase_source : 9ec78ca243151eb1a5426e29d2883f908a4a99fa
Diffstat (limited to 'common/modules')
-rw-r--r--common/modules/base.jsm4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/modules/base.jsm b/common/modules/base.jsm
index 30988035..066db165 100644
--- a/common/modules/base.jsm
+++ b/common/modules/base.jsm
@@ -611,13 +611,11 @@ function call(fn) {
*/
function memoize(obj, key, getter) {
if (arguments.length == 1) {
- let res = Object.create(obj);
+ let res = update(Object.create(obj), obj);
for each (let prop in Object.getOwnPropertyNames(obj)) {
let get = __lookupGetter__.call(obj, prop);
if (get)
memoize(res, prop, get);
- else if (obj[prop] instanceof Class.Property)
- Object.defineProperty(res, prop, obj[prop].init(prop, obj) || obj[prop]);
}
return res;
}