Bladeren bron

fix minor issues

Evan You 10 jaren geleden
bovenliggende
commit
8ed24739c9
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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()
 }