jquery support: Closes #3758, fixes a memory leak on IE. Thanks Choan Galvez.
[jquery.git] / src / support.js
index 20289c9..6d6bbce 100644 (file)
@@ -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
+};