Optimized code

pull/2/head
qingwei.li 2016-08-05 17:41:08 +08:00
parent 1c1417f536
commit 4e46e55e11
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ export default {
}, 200); }, 200);
}); });
} else { } else {
if (reference.hasChildNodes()) { if ([].slice.call(reference.children).length) {
const children = reference.childNodes; const children = reference.childNodes;
for (let i = 0; i < children.length; i++) { for (let i = 0; i < children.length; i++) {