Skip to main content

Bug Tracker

Side navigation

Ticket #5688: too_much_recursion.patch
File too_much_recursion.patch, 0.5 KB (added by ixpleo, December 20, 2009 01:29AM UTC)

Patch for "too much recursion" error.

--- jquery-1.4a2.js	2009-12-19 18:15:38.000000000 -0700
+++ jquery-1.4a2.new.js	2009-12-19 17:59:24.000000000 -0700
@@ -1808,7 +1808,7 @@ jQuery.each(["bind", "one"], function(i,
 			jQuery( this ).unbind( event, handler );
 			return fn.apply( this, arguments );
 		}) : fn;
-		return type === "unload" ? this.one(type, data, handler, thisObject) : this.each(function() {
+		return this.each(function() {
 			jQuery.event.add( this, type, handler, data );
 		});
 	};

Download in other formats:

Original Format