mirror of https://github.com/vuejs/vue.git
check vm.$el presence first
This commit is contained in:
parent
f0b8f2e290
commit
ea0f6a1eb3
|
|
@ -175,7 +175,9 @@ export function lifecycleMixin (Vue: Class<Component>) {
|
|||
// turn off all instance listeners.
|
||||
vm.$off()
|
||||
// remove __vue__ reference
|
||||
vm.$el.__vue__ = null
|
||||
if (vm.$el) {
|
||||
vm.$el.__vue__ = null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue