Commit 4e46e55e authored by qingwei.li's avatar qingwei.li

Optimized code

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