Commit aabfccf3 authored by John Resig's avatar John Resig

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

parent 44590a5d
...@@ -430,7 +430,7 @@ $.clean = function(a) { ...@@ -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];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment