Commit 7442ab04 authored by Julien Cigar's avatar Julien Cigar
Browse files

return child

parent d341153a
...@@ -501,7 +501,7 @@ ...@@ -501,7 +501,7 @@
for (var i=0, _len=elem.childNodes.length; i<_len; i++) { for (var i=0, _len=elem.childNodes.length; i<_len; i++) {
var child = elem.childNodes[i]; var child = elem.childNodes[i];
if (child.nodeType === 1 && child.nodeName.toUpperCase() == tag) { if (child.nodeType === 1 && child.nodeName.toUpperCase() == tag) {
return elem.childNodes[i]; return child;
} }
} }
return null; return null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment