Преглед на файлове

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()
 }