]> source.dussan.org Git - jquery.git/commitdiff
Fix for Safari crashes when doing DOM Manipulations
authorBrandon Aaron <brandon.aaron@gmail.com>
Wed, 28 Feb 2007 14:27:06 +0000 (14:27 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Wed, 28 Feb 2007 14:27:06 +0000 (14:27 +0000)
src/jquery/jquery.js

index 41b8201a4ff9564dd154e880ab5b973dce061ba7..5780ba76b38170727434ff4e135445aea9eb432e 100644 (file)
@@ -1495,7 +1495,9 @@ jQuery.extend({
                                        
                                }
                                
-                               arg = div.childNodes;
+                               arg = [];
+                               for (var i=0, l=div.childNodes.length; i<l; i++)
+                                       arg.push(div.childNodes[i]);
                        }
 
                        if ( arg.length === 0 && !jQuery.nodeName(arg, "form") )