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 fcf6237
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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.