From 90625e8a0502c3ffe56c2666b7167cff2edc495c Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 12 Jan 2015 19:31:45 -0500 Subject: [PATCH] Fix translators callback from translators on Fx 35 (affects COinS) --- chrome/content/zotero/xpcom/translation/translate.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index c301ea6ff8..9d7f5e27d2 100644 --- 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