Skip to content
Permalink
Browse files

timerId has to be set to true, to avoid starting multiple animation q…

…ueues
  • Loading branch information
louisremi timmywil
louisremi authored and timmywil committed Feb 1, 2011
1 parent 933ea8c commit 6de29b24b197f4fbbf3e48369343d457e7a80523
Showing with 3 additions and 3 deletions.
  1. +3 −3 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);
}
},

0 comments on commit 6de29b2

Please sign in to comment.
You can’t perform that action at this time.