timerId has to be set to true, to avoid starting multiple animation queues

This commit is contained in:
louisremi 2011-02-01 18:26:41 +01:00 committed by timmywil
parent 933ea8c5fa
commit 6de29b24b1

6
src/effects.js vendored
View 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);
}
},