We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d608d0 commit 6f5fc55Copy full SHA for 6f5fc55
src/jqLite.js
@@ -400,11 +400,9 @@ function jqLiteAddNodes(root, elements) {
400
// if an Array or NodeList and not a Window
401
if (typeof length === 'number' && elements.window !== elements) {
402
if (length) {
403
- if (elements.item) {
404
- // convert NodeList to an Array to make PhantomJS 1.x happy
405
- elements = slice.call(elements);
+ for (var i = 0; i < length; i++) {
+ root[root.length++] = elements[i];
406
}
407
- push.apply(root, elements);
408
409
} else {
410
root[root.length++] = elements;
0 commit comments