@@ -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()
}
@@ -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()