diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2007-02-28 14:27:06 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2007-02-28 14:27:06 +0000 |
commit | 5adf740a1522c18504b66a7d67ab23b00aad34db (patch) | |
tree | a39c130dfd2b92a433e926298fafb840d6062c63 /src | |
parent | 2cefce05c8619b359accb78eb0de8e54962f5abf (diff) | |
download | jquery-5adf740a1522c18504b66a7d67ab23b00aad34db.tar.gz jquery-5adf740a1522c18504b66a7d67ab23b00aad34db.zip |
Fix for Safari crashes when doing DOM Manipulations
Diffstat (limited to 'src')
-rw-r--r-- | src/jquery/jquery.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 41b8201a4..5780ba76b 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -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") ) |