mirror of https://github.com/ElemeFE/element
Optimized code
parent
1c1417f536
commit
4e46e55e11
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue