Fix translators callback from translators on Fx 35 (affects COinS)
This commit is contained in:
parent
5c76347674
commit
90625e8a05
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue