Skip to main content

Bug Tracker

Side navigation

Ticket #4001: fx_interval.patch
File fx_interval.patch, 0.5 KB (added by arrix, January 29, 2009 05:54AM UTC)
Index: fx.js
===================================================================
--- fx.js	(revision 6168)
+++ fx.js	(working copy)
@@ -273,7 +273,7 @@
 
 		t.elem = this.elem;
 
-		if ( t() && jQuery.timers.push(t) == 1 ) {
+		if ( t() && jQuery.timers.push(t) && !timerId) {
 			timerId = setInterval(function(){
 				var timers = jQuery.timers;
 
@@ -283,6 +283,7 @@
 
 				if ( !timers.length ) {
 					clearInterval( timerId );
+					timerId = undefined;
 				}
 			}, 13);
 		}

Download in other formats:

Original Format