commit 90625e8a0502c3ffe56c2666b7167cff2edc495c parent 5c76347674c026175e5b2f56fc887b48f3d55c4c Author: Simon Kornblith <simon@simonster.com> Date: Mon, 12 Jan 2015 19:31:45 -0500 Fix translators callback from translators on Fx 35 (affects COinS) Diffstat:
| M | chrome/content/zotero/xpcom/translation/translate.js | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -259,6 +259,13 @@ Zotero.Translate.Sandbox = { item = item.wrappedJSObject ? item.wrappedJSObject : item; if(arg1 == "itemDone") { item.complete = translate._sandboxZotero.Item.prototype.complete; + } else if(arg1 == "translators" && Zotero.isFx && !Zotero.isBookmarklet) { + var translators = new translate._sandboxManager.sandbox.Array(); + translators = translators.wrappedJSObject || translators; + for (var i=0; i<item.length; i++) { + translators.push(item[i]); + } + item = translators; } arg2(obj, item); } catch(e) {