Skip to content

Commit 2b34485

Browse files
author
Evan You
committed
pass on noRemove option from vm.$destroy to Compiler.destroy
1 parent f39703d commit 2b34485

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/viewmodel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def(VMProto, '$unwatch', function (key, callback) {
8181
/**
8282
* unbind everything, remove everything
8383
*/
84-
def(VMProto, '$destroy', function () {
85-
this.$compiler.destroy()
84+
def(VMProto, '$destroy', function (noRemove) {
85+
this.$compiler.destroy(noRemove)
8686
})
8787

8888
/**

0 commit comments

Comments
 (0)