Evan You 10 лет назад
Родитель
Сommit
8ed24739c9
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/element-directives/partial.js
  2. 1 1
      src/fragment/fragment.js

+ 1 - 1
src/element-directives/partial.js

@@ -45,7 +45,7 @@ module.exports = {
   },
 
   unbind: function () {
-    if (this.frag) this.frag.unlink()
+    if (this.frag) this.frag.destroy()
     if (this.unwatch) this.unwatch()
   }
 }

+ 1 - 1
src/fragment/fragment.js

@@ -49,7 +49,7 @@ Fragment.prototype.callHook = function (hook) {
 
 Fragment.prototype.destroy = function () {
   if (this.parentFrag) {
-    this.parentFrag.$remove(this)
+    this.parentFrag.childFrags.$remove(this)
   }
   this.unlink()
 }