Skip to main content

Bug Tracker

Side navigation

Ticket #3758: memory_leak_on_support_routines.diff


File memory_leak_on_support_routines.diff, 0.4 KB (added by choan, December 29, 2008 06:33PM UTC)

Patch (dettaches the handler)

Index: src/support.js
===================================================================
--- src/support.js	(revision 6007)
+++ src/support.js	(working copy)
@@ -78,6 +78,7 @@
 			// Cloning a node shouldn't copy over any
 			// bound event handlers (IE does this)
 			jQuery.support.noCloneEvent = false;
+			div.detachEvent("onclick", arguments.callee);
 		});
 		div.cloneNode(true).fireEvent("onclick");
 	}

Download in other formats:

Original Format