commit c09cbb0e4b008339d947fe7c3b203a608c8398f2
parent 1972a9522be0c78bad51bfdfbdfd635fdf5aef06
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 16 Apr 2012 01:37:04 -0400
Fix this.overrides is undefined error
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js
@@ -258,7 +258,6 @@ Zotero.Translate.DOMWrapper = new function() {
// Do the normal thing.
var flt = function(a) { return props.indexOf(a) == -1; };
- props = props.concat(Object.keys(this.overrides).filter(flt));
props = props.concat(Object.getOwnPropertyNames(obj).filter(flt));
// If we've got an Xray wrapper, include the expandos as well.
@@ -287,6 +286,7 @@ Zotero.Translate.DOMWrapper = new function() {
// the base object, and no Xray vision for the rest of the way up.
var obj = this.wrappedObject;
var props = [];
+ props = doGetOwnPropertyNames(this.overrides, props);
while (obj) {
props = doGetOwnPropertyNames(obj, props);
obj = Object.getPrototypeOf(XPCNativeWrapper.unwrap(obj));