]> source.dussan.org Git - jquery.git/commitdiff
there was no way to 'manually' stop an animation
authorlouisremi <louisremi@louisremi-laptop.(none)>
Tue, 1 Feb 2011 18:57:14 +0000 (19:57 +0100)
committertimmywil <tim.willison@thisismedium.com>
Mon, 4 Apr 2011 19:46:37 +0000 (15:46 -0400)
src/effects.js

index 82548611a937713cec28da94f19c788156268a9d..6a72a88fd0ec72e737c9389fc16a8b2d50e8b4e2 100644 (file)
@@ -470,7 +470,7 @@ jQuery.extend( jQuery.fx, {
 
                if ( !timers.length ) {
                        jQuery.fx.stop();
-               } else if ( jQuery.support.requestAnimationFrame ) {
+               } else if ( jQuery.support.requestAnimationFrame && timerId) {
                        window[jQuery.support.requestAnimationFrame](jQuery.fx.tick);
                }
        },