Skip to main content

Bug Tracker

Side navigation

Ticket #998: jquery.js.patch


File jquery.js.patch, 0.3 KB (added by dohpaz, February 24, 2007 07:33AM UTC)

This patch will add a condition to .pop() the last item out of the queue

--- jquery.orig.js	2007-02-24 02:56:40.000000000 -0500
+++ jquery.js	2007-02-24 02:53:02.000000000 -0500
@@ -1600,6 +1600,10 @@
 
 			if ( this.queue[type].length == 1 )
 				fn.apply(this);
+
+		    // Remove the item from the queue once it has been executed.
+		    else if ( this.queue[type].length > 1 )
+        	   this.queue[type].pop();
 		});
 	}

Download in other formats:

Original Format