Skip to content

Commit fb8775d

Browse files
author
Philippe Elsass
committed
Fixes: __vfrag__ references prevent GC of Vue objects vuejs#2161
1 parent 01f4e1e commit fb8775d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fragment/fragment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ Fragment.prototype.destroy = function () {
181181
if (this.parentFrag) {
182182
this.parentFrag.childFrags.$remove(this)
183183
}
184+
if (this.node) {
185+
this.node.__vfrag__ = null
186+
}
184187
this.unlink()
185188
}
186189

0 commit comments

Comments
 (0)