pass on noRemove option from vm.$destroy to Compiler.destroy

This commit is contained in:
Evan You 2014-07-07 09:54:08 -04:00
parent f39703da36
commit 2b3448576c
1 changed files with 2 additions and 2 deletions

View File

@ -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)
})
/**