Minor tweak to avoid calling done too early

This commit is contained in:
Simon Kornblith 2012-04-09 11:21:32 -04:00
parent d3bc2b4046
commit 129805c62b

View file

@ -129,7 +129,6 @@ Zotero.Translate.ItemSaver.prototype = {
callback(false, new Error("Save to server failed"));
} else {
Zotero.debug("Translate: Save to server complete");
callback(true, items);
if(typedArraysSupported) {
try {
@ -147,6 +146,8 @@ Zotero.Translate.ItemSaver.prototype = {
}
}
}
callback(true, items);
}
});
},