Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for Safari crashes when doing DOM Manipulations
  • Loading branch information
brandonaaron committed Feb 28, 2007
1 parent 2cefce0 commit 5adf740
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jquery/jquery.js
Expand Up @@ -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") )
Expand Down

0 comments on commit 5adf740

Please sign in to comment.