Skip to content
Permalink
Browse files
Fixed the Safari crashing bug. So much hate.
  • Loading branch information
jeresig committed Jan 11, 2007
1 parent c690472 commit 07aa989ce912e2bcdee79074e119599aa5eb72f6
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 );

0 comments on commit 07aa989

Please sign in to comment.