Clean up for revision 1462: "Fix for Safari crashes when doing DOM Manipulations" to use jQuery.makeArray

This commit is contained in:
Brandon Aaron 2007-03-09 15:41:58 +00:00
parent 2b9b3e90c1
commit a6886d0904

View File

@ -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") )