Skip to content

Commit b8fc9d1

Browse files
author
timmywil
committed
detachEvent is unnecessary since we're nulling div. Fixes #8873.
1 parent 657b197 commit b8fc9d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/support.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,10 @@ jQuery.support = (function() {
109109
}
110110

111111
if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
112-
div.attachEvent( "onclick", function click() {
112+
div.attachEvent( "onclick", function() {
113113
// Cloning a node shouldn't copy over any
114114
// bound event handlers (IE does this)
115115
support.noCloneEvent = false;
116-
div.detachEvent( "onclick", click );
117116
});
118117
div.cloneNode( true ).fireEvent( "onclick" );
119118
}

0 commit comments

Comments
 (0)