Explorar o código

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

Fixes: __vfrag__ references prevent GC of Vue objects
Evan You %!s(int64=10) %!d(string=hai) anos
pai
achega
f57ea7c849
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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()
 }