aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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") )