Adapt unwrapping for master

This commit is contained in:
Simon Kornblith 2012-03-06 00:01:52 -05:00
parent 575fd30e62
commit 08cf3d9841

View File

@ -310,8 +310,8 @@ Zotero.Translate.ItemSaver.prototype = {
|| downloadAssociatedFiles;
if(!shouldAttach) return;
if(attachment.document && "__wrappedDOMObject" in attachment.document) {
attachment.document = attachment.document.__wrappedDOMObject;
if(attachment.document) {
attachment.document = Zotero.Translate.DOMWrapper.unwrap(attachment.document);
}
if(attachment.snapshot === false || !this._saveFiles) {