mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed the Safari crashing bug. So much hate.
This commit is contained in:
parent
c690472135
commit
07aa989ce9
4
src/jquery/jquery.js
vendored
4
src/jquery/jquery.js
vendored
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user