Commit 1b0276dc authored by Ariel Flesler's avatar Ariel Flesler

jquery support: Closes #3758, fixes a memory leak on IE. Thanks Choan Galvez.

parent 4f99e793
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
// Cloning a node shouldn't copy over any // Cloning a node shouldn't copy over any
// bound event handlers (IE does this) // bound event handlers (IE does this)
jQuery.support.noCloneEvent = false; jQuery.support.noCloneEvent = false;
div.detachEvent("onclick", arguments.callee);
}); });
div.cloneNode(true).fireEvent("onclick"); div.cloneNode(true).fireEvent("onclick");
} }
...@@ -96,4 +97,4 @@ jQuery.props = { ...@@ -96,4 +97,4 @@ jQuery.props = {
maxlength: "maxLength", maxlength: "maxLength",
cellspacing: "cellSpacing", cellspacing: "cellSpacing",
rowspan: "rowSpan" rowspan: "rowSpan"
}; };
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment