From: louisremi Date: Tue, 1 Feb 2011 17:26:41 +0000 (+0100) Subject: timerId has to be set to true, to avoid starting multiple animation queues X-Git-Tag: 1.6b1~26^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6de29b24b197f4fbbf3e48369343d457e7a80523;p=jquery.git timerId has to be set to true, to avoid starting multiple animation queues --- diff --git a/src/effects.js b/src/effects.js index 196807ecb..82548611a 100644 --- a/src/effects.js +++ b/src/effects.js @@ -363,9 +363,9 @@ jQuery.fx.prototype = { t.elem = this.elem; if ( t() && jQuery.timers.push(t) && !timerId ) { - jQuery.support.requestAnimationFrame ? - window[jQuery.support.requestAnimationFrame](fx.tick): - timerId = setInterval(fx.tick, fx.interval); + timerId = jQuery.support.requestAnimationFrame ? + !window[jQuery.support.requestAnimationFrame](fx.tick): + setInterval(fx.tick, fx.interval); } },