Clean up for revision 1462: "Fix for Safari crashes when doing DOM Manipulations...
authorBrandon Aaron <brandon.aaron@gmail.com>
Fri, 9 Mar 2007 15:41:58 +0000 (15:41 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Fri, 9 Mar 2007 15:41:58 +0000 (15:41 +0000)
src/jquery/jquery.js

index 4874037..48d7447 100644 (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") )