]> source.dussan.org Git - jquery.git/commitdiff
timerId has to be set to true, to avoid starting multiple animation queues
authorlouisremi <louisremi@louisremi-laptop.(none)>
Tue, 1 Feb 2011 17:26:41 +0000 (18:26 +0100)
committertimmywil <tim.willison@thisismedium.com>
Mon, 4 Apr 2011 19:46:37 +0000 (15:46 -0400)
src/effects.js

index 196807ecba60f2061cfa9dcd2e1b85fa2c6dfc26..82548611a937713cec28da94f19c788156268a9d 100644 (file)
@@ -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);
                }
        },