mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
E4X is gone
This commit is contained in:
parent
3672d2a895
commit
608da632f3
1 changed files with 1 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue