From 7638fc58354e295f96a2d948adcb1ce1c2da60b3 Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 15 Sep 2009 15:56:18 +0000 Subject: [PATCH] Fix for SVN rev [6537]. Events weren't being unbound correctly in Internet Explorer (cleanData wasn't handling malformed NodeList results correctly). --- src/manipulation.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/manipulation.js b/src/manipulation.js index 73b0de3..b883567 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -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 ]; } } -- 1.7.10.4