aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2007-02-28 14:27:06 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2007-02-28 14:27:06 +0000
commit5adf740a1522c18504b66a7d67ab23b00aad34db (patch)
treea39c130dfd2b92a433e926298fafb840d6062c63 /src
parent2cefce05c8619b359accb78eb0de8e54962f5abf (diff)
downloadjquery-5adf740a1522c18504b66a7d67ab23b00aad34db.tar.gz
jquery-5adf740a1522c18504b66a7d67ab23b00aad34db.zip
Fix for Safari crashes when doing DOM Manipulations
Diffstat (limited to 'src')
-rw-r--r--src/jquery/jquery.js4
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") )