浏览代码

unnecessary check

David Catuhe 7 年之前
父节点
当前提交
3719de32ef
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/babylon.node.ts

+ 2 - 4
src/babylon.node.ts

@@ -392,10 +392,8 @@
                 return false;
                 return false;
             }
             }
 
 
-            if (this._parentNode) {
-                if (!this.isSynchronizedWithParent()) {
-                    return false;
-                }
+            if (!this.isSynchronizedWithParent()) {
+                return false;
             }
             }
 
 
             return this._isSynchronized();
             return this._isSynchronized();