Merge branch '3.0'
This commit is contained in:
commit
9817b02181
|
@ -510,6 +510,8 @@ Zotero.Translate.Sandbox = {
|
||||||
* @param {SandboxItem} An item created using the Zotero.Item class from the sandbox
|
* @param {SandboxItem} An item created using the Zotero.Item class from the sandbox
|
||||||
*/
|
*/
|
||||||
"_itemDone":function(translate, item) {
|
"_itemDone":function(translate, item) {
|
||||||
|
// Only apply checks if there is no parent translator
|
||||||
|
if(!translate._parentTranslator) {
|
||||||
if(!item.itemType) {
|
if(!item.itemType) {
|
||||||
item.itemType = "webpage";
|
item.itemType = "webpage";
|
||||||
translate._debug("WARNING: No item type specified");
|
translate._debug("WARNING: No item type specified");
|
||||||
|
@ -580,6 +582,7 @@ Zotero.Translate.Sandbox = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// call super
|
// call super
|
||||||
Zotero.Translate.Sandbox.Base._itemDone(translate, item);
|
Zotero.Translate.Sandbox.Base._itemDone(translate, item);
|
||||||
|
|
|
@ -417,6 +417,8 @@ Zotero.Translate.SandboxManager = function(sandboxLocation) {
|
||||||
return s.serializeToString(Zotero.Translate.DOMWrapper.unwrap(doc));
|
return s.serializeToString(Zotero.Translate.DOMWrapper.unwrap(doc));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
this.sandbox.XMLSerializer.__exposedProps__ = {"prototype":"r"};
|
||||||
|
this.sandbox.XMLSerializer.prototype = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
Zotero.Translate.SandboxManager.prototype = {
|
Zotero.Translate.SandboxManager.prototype = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user