2
0
Эх сурвалжийг харах

Fixes: __vfrag__ references prevent GC of Vue objects #2161

Philippe Elsass 10 жил өмнө
parent
commit
fb8775dfca

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