Преглед изворни кода

Fixes: __vfrag__ references prevent GC of Vue objects #2161

Philippe Elsass пре 10 година
родитељ
комит
fb8775dfca
1 измењених фајлова са 3 додато и 0 уклоњено
  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()
 }