From 03e6f7235bd671330f807642fefd297c42413c45 Mon Sep 17 00:00:00 2001 From: louisremi Date: Tue, 1 Feb 2011 19:57:14 +0100 Subject: [PATCH] there was no way to 'manually' stop an animation --- src/effects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects.js b/src/effects.js index 82548611..6a72a88f 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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); } },