mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix for SVN rev [6537]. Events weren't being unbound correctly in Internet Explorer (cleanData wasn't handling malformed NodeList results correctly).
This commit is contained in:
@@ -444,9 +444,8 @@ jQuery.extend({
|
||||
});
|
||||
|
||||
function cleanData( elems ) {
|
||||
for ( var i = 0, l = elems.length; i < l; i++ ) {
|
||||
var id = elems[i][expando];
|
||||
if ( id ) {
|
||||
for ( var i = 0, elem, id; (elem = elems[i]) != null; i++ ) {
|
||||
if ( (id = elem[expando]) ) {
|
||||
delete jQuery.cache[ id ];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user