8000 Merge pull request #2162 from elsassph/fix-2161-dev · vuejs/vue@f57ea7c · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f57ea7c

Browse files
committed
Merge pull request #2162 from elsassph/fix-2161-dev
Fixes: __vfrag__ references prevent GC of Vue objects
2 parents 7fd665f + f3e79b7 commit f57ea7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fragment/fragment.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ Fragment.prototype.destroy = function () {
181181
if (this.parentFrag) {
182182
this.parentFrag.childFrags.$remove(this)
183183
}
184+
this.node.__vfrag__ = null
184185
this.unlink()
185186
}
186187

0 commit comments

Comments
 (0)
0