From 4e48c32a0ee62f55dbb766a308ec1e6817e66f1d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 19 Aug 2009 21:12:57 +0000 Subject: [PATCH] Don't call first() twice in processAsync() --- chrome/content/zotero/xpcom/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 88886ba26..527f8a0ac 100644 --- 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