From acd54cd2c037a19f6bec86409ad955e1aa5d54e0 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 2 Nov 2011 00:28:54 -0400 Subject: [PATCH] Save a little code --- chrome/content/zotero/xpcom/translation/translate.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 33fb57f18..1b82c610e 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -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