Skip to content

Commit

Permalink
[browser] return an array of children
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Sep 2, 2013
1 parent 2a9e9ca commit d873dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser_functions.js
Expand Up @@ -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;
Expand Down

0 comments on commit d873dda

Please sign in to comment.