aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-12-29 22:05:02 +0000
committerAriel Flesler <aflesler@gmail.com>2008-12-29 22:05:02 +0000
commit1b0276dc57cbca869027ba19986b0810f7042854 (patch)
treee42a68fde0005f6b305e530752f3352ba58b1193 /src/support.js
parent4f99e793fa7a745ee49c73193891d6e2a40565c2 (diff)
downloadjquery-1b0276dc57cbca869027ba19986b0810f7042854.tar.gz
jquery-1b0276dc57cbca869027ba19986b0810f7042854.zip
jquery support: Closes #3758, fixes a memory leak on IE. Thanks Choan Galvez.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js3
1 files changed, 2 insertions, 1 deletions
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
+};