www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c4bfd17e5268871f28f5ee44b1555991a4e28158
parent 4607239fa94897be45a824f66243d2da96243bce
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 21 Sep 2011 00:34:38 +0000

Fix error


Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -1512,7 +1512,7 @@ if(appInfo.platformVersion[0] >= 2) { /** * Pumps a generator until it yields false. See schema.js for an example. */ - this.pumpGenerator = function(generator) { + this.pumpGenerator = function(generator, ms) { _waiting++; var timer = Components.classes["@mozilla.org/timer;1"]. @@ -1524,7 +1524,7 @@ if(appInfo.platformVersion[0] >= 2) { _waiting--; } }} - timer.initWithCallback(timerCallback, ms, Components.interfaces.nsITimer.TYPE_REPEATING_SLACK); + timer.initWithCallback(timerCallback, ms ? ms : 0, Components.interfaces.nsITimer.TYPE_REPEATING_SLACK); // add timer to global scope so that it doesn't get garbage collected before it completes _runningTimers.push(timer); }