]> source.dussan.org Git - jquery.git/commitdiff
Fixed the Safari crashing bug. So much hate.
authorJohn Resig <jeresig@gmail.com>
Thu, 11 Jan 2007 03:57:19 +0000 (03:57 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 11 Jan 2007 03:57:19 +0000 (03:57 +0000)
src/jquery/jquery.js

index 71485b0831bc79ac16d7068d05b5ba1158c69a04..dbec38f5458eb318400e2a261454f287e787766b 100644 (file)
@@ -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 );