Sfoglia il codice sorgente

Merge pull request #2162 from elsassph/fix-2161-dev

Fixes: __vfrag__ references prevent GC of Vue objects
Evan You 10 anni fa
parent
commit
f57ea7c849
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/fragment/fragment.js

+ 1 - 0
src/fragment/fragment.js

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