Added Klaus' fix for accidental DOM node catches (Ticket #3).

This commit is contained in:
John Resig 2006-06-16 01:51:15 +00:00
parent 44590a5d84
commit aabfccf371

2
jquery/jquery.js vendored
View file

@ -430,7 +430,7 @@ $.clean = function(a) {
for ( var j = 0; j < div.childNodes.length; j++ ) { for ( var j = 0; j < div.childNodes.length; j++ ) {
r[r.length] = div.childNodes[j]; r[r.length] = div.childNodes[j];
} }
} else if ( a[i].length ) { } else if ( a[i].length && !a[i].nodeType ) {
for ( var k = 0; k < a[i].length; k++ ) { for ( var k = 0; k < a[i].length; k++ ) {
r[r.length] = a[i][k]; r[r.length] = a[i][k];
} }