Commit 14ca6673 authored by Julien Cigar's avatar Julien Cigar
Browse files

uses .hasChildNodes()

parent e7dec3cc
......@@ -442,7 +442,7 @@
}
}
if (deep && node.childNodes && node.childNodes.length > 0) {
if (deep && node.hasChildNodes()) {
for (var i=0, _len=node.childNodes.length ; i<_len ; i++) {
newNode.appendChild(Yeti.DOM.importNode(node.childNodes[i], deep));
}
......
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