From 6de29b24b197f4fbbf3e48369343d457e7a80523 Mon Sep 17 00:00:00 2001 From: louisremi Date: Tue, 1 Feb 2011 18:26:41 +0100 Subject: [PATCH] timerId has to be set to true, to avoid starting multiple animation queues --- src/effects.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/effects.js b/src/effects.js index 196807ec..82548611 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); } },