Skip to content

Commit

Permalink
types: remove unecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 12, 2018
1 parent 0bc2c34 commit 731b498
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/instance/lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ export function lifecycleMixin (Vue: Class<Component>) {
if (!prevVnode) {
// initial render
vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */)
// no need for the ref nodes after initial patch
// this prevents keeping a detached DOM tree in memory (#5851)
vm.$options._parentElm = vm.$options._refElm = null
} else {
// updates
vm.$el = vm.__patch__(prevVnode, vnode)
Expand Down

0 comments on commit 731b498

Please sign in to comment.