mirror of https://github.com/vuejs/vue.git
pass on noRemove option from vm.$destroy to Compiler.destroy
This commit is contained in:
parent
f39703da36
commit
2b3448576c
|
|
@ -81,8 +81,8 @@ def(VMProto, '$unwatch', function (key, callback) {
|
|||
/**
|
||||
* unbind everything, remove everything
|
||||
*/
|
||||
def(VMProto, '$destroy', function () {
|
||||
this.$compiler.destroy()
|
||||
def(VMProto, '$destroy', function (noRemove) {
|
||||
this.$compiler.destroy(noRemove)
|
||||
})
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue