commit 4e48c32a0ee62f55dbb766a308ec1e6817e66f1d
parent 8455b4ce0a2795209b8071ec057531a6180a943c
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 19 Aug 2009 21:12:57 +0000
Don't call first() twice in processAsync()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js
@@ -569,8 +569,8 @@ Zotero.Utilities.prototype.processAsync = function (sets, callbacks, onDone) {
callbacks[0](currentSet, nextCallback);
};
var nextCallback = function () {
- callbacks[index](currentSet, nextCallback);
index++;
+ callbacks[index](currentSet, nextCallback);
};
// Add a final callback to proceed to the next set