aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-05-25 15:08:37 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-25 15:08:37 -0400
commitb8fc9d14a134f91f17bf96194da86d38231da005 (patch)
tree3d07bf4dbc1dce13f69e5bfac8459007c7bf725d /src/support.js
parent657b197c193335899703fc158b153e2475cca539 (diff)
downloadjquery-b8fc9d14a134f91f17bf96194da86d38231da005.tar.gz
jquery-b8fc9d14a134f91f17bf96194da86d38231da005.zip
detachEvent is unnecessary since we're nulling div. Fixes #8873.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/support.js b/src/support.js
index b500f9009..42108dedd 100644
--- a/src/support.js
+++ b/src/support.js
@@ -109,11 +109,10 @@ jQuery.support = (function() {
}
if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
- div.attachEvent( "onclick", function click() {
+ div.attachEvent( "onclick", function() {
// Cloning a node shouldn't copy over any
// bound event handlers (IE does this)
support.noCloneEvent = false;
- div.detachEvent( "onclick", click );
});
div.cloneNode( true ).fireEvent( "onclick" );
}