소스 검색

Optimized code

qingwei.li 9 년 전
부모
커밋
4e46e55e11
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/popover/src/main.vue

+ 1 - 1
packages/popover/src/main.vue

@@ -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++) {