]> source.dussan.org Git - jquery.git/commitdiff
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 48740377ce0c991a39a81f318ee57ec8a433f986..48d7447f4b802f0cae71c8e1ad6a6ed78b4f2a7e 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") )