Explorar o código

Fixes: __vfrag__ references prevent GC of Vue objects #2161

Philippe Elsass %!s(int64=10) %!d(string=hai) anos
pai
achega
fb8775dfca
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/fragment/fragment.js

+ 3 - 0
src/fragment/fragment.js

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