소스 검색

Removed `this.node` null check guard.

Philippe Elsass 10 년 전
부모
커밋
f3e79b7c1a
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/fragment/fragment.js

+ 1 - 3
src/fragment/fragment.js

@@ -181,9 +181,7 @@ Fragment.prototype.destroy = function () {
   if (this.parentFrag) {
     this.parentFrag.childFrags.$remove(this)
   }
-  if (this.node) {
-    this.node.__vfrag__ = null
-  }
+  this.node.__vfrag__ = null
   this.unlink()
 }