From: John Resig Date: Thu, 11 Jan 2007 03:57:19 +0000 (+0000) Subject: Fixed the Safari crashing bug. So much hate. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=07aa989ce912e2bcdee79074e119599aa5eb72f6;hp=c69047213514549551f3f612968bc669561e17c5;p=jquery.git Fixed the Safari crashing bug. So much hate. --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 71485b0..dbec38f 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -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 );