mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Clean up for revision 1462: "Fix for Safari crashes when doing DOM Manipulations" to use jQuery.makeArray
This commit is contained in:
parent
2b9b3e90c1
commit
a6886d0904
4
src/jquery/jquery.js
vendored
4
src/jquery/jquery.js
vendored
@ -1495,9 +1495,7 @@ jQuery.extend({
|
||||
|
||||
}
|
||||
|
||||
arg = [];
|
||||
for (var i=0, l=div.childNodes.length; i<l; i++)
|
||||
arg.push(div.childNodes[i]);
|
||||
arg = jQuery.makeArray( div.childNodes[i] );
|
||||
}
|
||||
|
||||
if ( arg.length === 0 && !jQuery.nodeName(arg, "form") )
|
||||
|
Loading…
Reference in New Issue
Block a user