Commit 07aa989c authored by John Resig's avatar John Resig

Fixed the Safari crashing bug. So much hate.

parent c6904721
......@@ -1383,7 +1383,7 @@ jQuery.extend({
clean: function(a) {
var r = [];
for ( var i = 0, al = a.length; i < al; i++ ) {
var arg = a[i];
......@@ -1436,7 +1436,7 @@ jQuery.extend({
arg = div.childNodes;
}
if ( arg.nodeType )
if ( arg[0] == undefined )
r.push( arg );
else
r = jQuery.merge( r, arg );
......
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