Просмотр исходного кода

Removed `this.node` null check guard.

Philippe Elsass 10 лет назад
Родитель
Сommit
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()
 }