]> source.dussan.org Git - jquery.git/commitdiff
jquery support: Closes #3758, fixes a memory leak on IE. Thanks Choan Galvez.
authorAriel Flesler <aflesler@gmail.com>
Mon, 29 Dec 2008 22:05:02 +0000 (22:05 +0000)
committerAriel Flesler <aflesler@gmail.com>
Mon, 29 Dec 2008 22:05:02 +0000 (22:05 +0000)
src/support.js

index 20289c99b214b8ac5756b53f298b730947d1e76d..6d6bbce7422c9f23ac6d53aedb7ebe1b697ef737 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
+};