浏览代码

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

Evan You 12 年之前
父节点
当前提交
2b3448576c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/viewmodel.js

+ 2 - 2
src/viewmodel.js

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