www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 608da632f30360fa3b2f807d9de0d2f523109262
parent 3672d2a895862329a677ff7e7ac230999d1174fc
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 24 Feb 2015 19:30:44 -0500

E4X is gone

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 23+----------------------
1 file changed, 1 insertion(+), 22 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -1569,28 +1569,7 @@ Zotero.Translate.Base.prototype = { "Zotero.Collection.prototype.complete = function() { Zotero._collectionDone(this); };"; } - if(Zotero.isFx && !Zotero.isBookmarklet) { - // workaround for inadvertant attempts to pass E4X back from sandbox - src += "Zotero.Item.prototype.complete = function() { "+ - "for(var key in this) {"+ - "if("+createArrays+".indexOf(key) !== -1) {"+ - "for each(var item in this[key]) {"+ - "for(var key2 in item) {"+ - "if(typeof item[key2] === 'xml') {"+ - "item[key2] = item[key2].toString();"+ - "}"+ - "}"+ - "}"+ - "} else if(typeof this[key] === 'xml') {"+ - "this[key] = this[key].toString();"+ - "}"+ - "}"; - } else { - src += "Zotero.Item.prototype.complete = function() { "; - } - - src += "Zotero._itemDone(this);"+ - "}"; + src += "Zotero.Item.prototype.complete = function() { Zotero._itemDone(this); }"; this._sandboxManager.eval(src); this._sandboxManager.importObject(this.Sandbox, this);