Ensure that the DOM element ref in an event handler is removed by cleanData to avoid an IE6/7/8 memory leak. Fixes #7054.

This commit is contained in:
Dave Methvin 2011-01-09 16:25:44 -06:00 committed by Colin Snover
parent 4e86766d54
commit fcf623786a

View file

@ -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 ) {