commit 87a0df43d840da44e64bb0f05e64956e94b99d6e parent d9720f18a9d0e38f21dde60d4a330cc2c11f0ea7 Author: Simon Kornblith <simon@simonster.com> Date: Sun, 6 Jul 2014 14:07:00 -0400 Fix some more Fx 32 issues Ref https://forums.zotero.org/discussion/37885/ Diffstat:
| M | chrome/content/zotero/xpcom/translation/translate_firefox.js | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -513,7 +513,7 @@ Zotero.Translate.SandboxManager.prototype = { if(!this._canCopy(obj)) return obj if(!wm) wm = new WeakMap(); var obj2 = (obj instanceof Array ? this.sandbox.Array() : this.sandbox.Object()); - if(obj2.wrappedJSObject) obj2 = obj2.wrappedJSObject; + var wobj2 = obj2.wrappedJSObject ? obj2.wrappedJSObject : obj2; for(var i in obj) { if(!obj.hasOwnProperty(i)) continue; @@ -524,9 +524,9 @@ Zotero.Translate.SandboxManager.prototype = { prop2 = this._copyObject(prop1, wm); wm.set(prop1, prop2); } - obj2[i] = prop2; + wobj2[i] = prop2; } else { - obj2[i] = prop1; + wobj2[i] = prop1; } } return obj2;