remove unnecessary el setting in keep-alive

This commit is contained in:
Evan You 2016-08-15 12:34:55 -04:00
parent efb603570e
commit d927159a37
1 changed files with 1 additions and 2 deletions

View File

@ -17,8 +17,7 @@ export default {
? opts.Ctor.cid + '::' + opts.tag
: vnode.key
if (this.cache[key]) {
const child = vnode.child = this.cache[key].child
vnode.elm = this.$el = child.$el
vnode.child = this.cache[key].child
} else {
this.cache[key] = vnode
}