diff options
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/support.js b/src/support.js index 612e2942b..9d25c8f29 100644 --- a/src/support.js +++ b/src/support.js @@ -10,6 +10,7 @@ jQuery.support = (function() { eventName, i, isSupported, + clickFn, div = document.createElement("div"); // Preliminary tests @@ -112,12 +113,13 @@ jQuery.support = (function() { } if ( !div.addEventListener && div.attachEvent && div.fireEvent ) { - div.attachEvent( "onclick", function() { + div.attachEvent( "onclick", clickFn = function() { // Cloning a node shouldn't copy over any // bound event handlers (IE does this) support.noCloneEvent = false; }); div.cloneNode( true ).fireEvent("onclick"); + div.detachEvent( "onclick", clickFn ); } // Check if a radio maintains its value |