commit acd54cd2c037a19f6bec86409ad955e1aa5d54e0 parent 690ceac4b3546f51f640f2adb4c8d2426e441803 Author: Simon Kornblith <simon@simonster.com> Date: Wed, 2 Nov 2011 00:28:54 -0400 Save a little code Diffstat:
| M | 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 @@ -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