aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery
diff options
context:
space:
mode:
Diffstat (limited to 'src/jquery')
-rw-r--r--src/jquery/jquery.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 48740377c..48d7447f4 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1495,9 +1495,7 @@ jQuery.extend({
}
- arg = [];
- for (var i=0, l=div.childNodes.length; i<l; i++)
- arg.push(div.childNodes[i]);
+ arg = jQuery.makeArray( div.childNodes[i] );
}
if ( arg.length === 0 && !jQuery.nodeName(arg, "form") )