Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Jun 16, 2006
1 parent 44590a5 commit aabfccf371ac9a16979772dc6411fbe806138fac
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery/jquery.js
@@ -430,7 +430,7 @@ $.clean = function(a) {
for ( var j = 0; j < div.childNodes.length; 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++ ) {
r[r.length] = a[i][k];
}

0 comments on commit aabfccf

Please sign in to comment.
You can’t perform that action at this time.