Skip to content
Browse files

[browser] return an array of children

  • Loading branch information...
1 parent 2a9e9ca commit d873ddabe61cfd95700238df8885ec0d840f0d18 @fb55 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 browser_functions.js
View
2 browser_functions.js
@@ -2,7 +2,7 @@ function isTag(elem){
return elem.nodeType === 1;
}
function getChildren(elem){
- return elem.childNodes;
+ return Array.prototype.slice.call(elem.childNodes, 0);
}
function getParent(elem){
return elem.parentElement;

0 comments on commit d873dda

Please sign in to comment.
Something went wrong with that request. Please try again.