From: Ariel Flesler Date: Mon, 29 Dec 2008 22:05:02 +0000 (+0000) Subject: jquery support: Closes #3758, fixes a memory leak on IE. Thanks Choan Galvez. X-Git-Tag: 1.3b2~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1b0276dc57cbca869027ba19986b0810f7042854;p=jquery.git jquery support: Closes #3758, fixes a memory leak on IE. Thanks Choan Galvez. --- diff --git a/src/support.js b/src/support.js index 20289c99b..6d6bbce74 100644 --- a/src/support.js +++ b/src/support.js @@ -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"); } @@ -96,4 +97,4 @@ jQuery.props = { maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan" -}; \ No newline at end of file +};