Save a little code

This commit is contained in:
Simon Kornblith 2011-11-02 00:28:54 -04:00
parent 690ceac4b3
commit acd54cd2c0

View file

@ -229,10 +229,9 @@ Zotero.Translate.Sandbox = {
|| translate instanceof Zotero.Translate.Search)) {
// Necessary to get around object wrappers in Firefox
var attachments = item.attachments;
delete item.attachments;
item = translate._sandboxManager.sandbox.Zotero._transferItem(JSON.stringify(item));
item.attachments = [];
item = translate._sandboxManager.sandbox.Zotero._transferItem(JSON.stringify(item));
// Manually copy attachments in case there are documents, which
// can't be serialized and don't need to be