Bläddra i källkod

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

Evan You 12 år sedan
förälder
incheckning
2b3448576c
1 ändrade filer med 2 tillägg och 2 borttagningar
  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)
 })
 
 /**