Skip to content
Permalink
Browse files

Ensure that the DOM element ref in an event handler is removed by cle…

…anData to avoid an IE6/7/8 memory leak. Fixes #7054.
  • Loading branch information...
dmethvin authored and csnover committed Jan 9, 2011
1 parent 4e86766 commit fcf623786aeae20485e5253bd2b66c8758053646
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/manipulation.js
@@ -617,6 +617,11 @@ jQuery.extend({
jQuery.removeEvent( elem, type, data.handle );
}
}

// Null the DOM reference to avoid IE6/7/8 leak (#7054)
if ( data.handle ) {
data.handle.elem = null;
}
}

if ( deleteExpando ) {

0 comments on commit fcf6237

Please sign in to comment.
You can’t perform that action at this time.