Sfoglia il codice sorgente

Removed `this.node` null check guard.

Philippe Elsass 10 anni fa
parent
commit
f3e79b7c1a
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  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()
 }