mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 05:28:05 -05:00
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:
committed by
Colin Snover
parent
4e86766d54
commit
fcf623786a
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user