A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/commit/07a3726 below:

remove reference to refElm after initial patch (fix #5851) · vuejs/vue@07a3726 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+3

-2

lines changed Original file line number Diff line number Diff line change

@@ -65,6 +65,9 @@ export function lifecycleMixin (Vue: Class<Component>) {

65 65

vm.$options._parentElm,

66 66

vm.$options._refElm

67 67

)

68 +

// no need for the ref nodes after initial patch

69 +

// this prevents keeping a detached DOM tree in memory (#5851)

70 +

vm.$options._parentElm = vm.$options._refElm = null

68 71

} else {

69 72

// updates

70 73

vm.$el = vm.__patch__(prevVnode, vnode)

@@ -129,8 +132,6 @@ export function lifecycleMixin (Vue: Class<Component>) {

129 132

if (vm.$el) {

130 133

vm.$el.__vue__ = null

131 134

}

132 -

// remove reference to DOM nodes (prevents leak)

133 -

vm.$options._parentElm = vm.$options._refElm = null

134 135

}

135 136

}

136 137

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4