Added Klaus' fix for accidental DOM node catches (Ticket #3).
This commit is contained in:
parent
44590a5d84
commit
aabfccf371
2
jquery/jquery.js
vendored
2
jquery/jquery.js
vendored
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue