www

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

commit 47dbd613ea112f00a8c43db09c52490891bd9b86
parent 3e1335767afafaf28613e3aea885544ac3a9f43e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 14 Jun 2011 17:46:46 +0000

Revert r9383 (substantially) to fix unending sync icon spinning


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

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -1523,14 +1523,17 @@ if(appInfo.platformVersion[0] >= 2) { var timer = Components.classes["@mozilla.org/timer;1"]. createInstance(Components.interfaces.nsITimer); var timerCallback = {"notify":function() { - if(_waiting) { + // + // DEBUG: This can result in the callback not being triggered in Fx4+ + // + //if(_waiting) { // if our callback gets called during Zotero.wait(), queue it to be set again // when Zotero.wait() completes - _waitTimerCallbacks.push(timerCallback); - } else { + //_waitTimerCallbacks.push(timerCallback); + //} else { // otherwise, execute callback function func(); - } + //} }} timer.initWithCallback(timerCallback, ms, Components.interfaces.nsITimer.TYPE_ONE_SHOT); }