mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
Optimized code
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user