Fix translators callback from translators on Fx 35 (affects COinS)
This commit is contained in:
parent
5c76347674
commit
90625e8a05
|
@ -259,6 +259,13 @@ Zotero.Translate.Sandbox = {
|
||||||
item = item.wrappedJSObject ? item.wrappedJSObject : item;
|
item = item.wrappedJSObject ? item.wrappedJSObject : item;
|
||||||
if(arg1 == "itemDone") {
|
if(arg1 == "itemDone") {
|
||||||
item.complete = translate._sandboxZotero.Item.prototype.complete;
|
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);
|
arg2(obj, item);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user