commit e63e917ecff31d47df8237ae7e0902a22c7ca970
parent 01086afd43b930f1f1e37bc244e78a08d995cdf4
Author: Simon Kornblith <simon@simonster.com>
Date: Sat, 2 Jul 2011 00:17:33 +0000
Don't require done function in ZU.processDocuments
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js
@@ -905,7 +905,7 @@ Zotero.Utilities.Translate.prototype.processDocuments = function(urls, processor
var translate = this._translate;
translate.incrementAsyncProcesses();
Zotero.HTTP.processDocuments(urls, processor, function() {
- done();
+ if(done) done();
translate.decrementAsyncProcesses();
}, exception);
}