Skip to content

Commit 0bfd6e6

Browse files
committed
fix partial decompile in v-if/v-partial
1 parent 540da66 commit 0bfd6e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/directives/if.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
if (value) {
3535
this.insert()
3636
} else {
37-
this.unbind()
37+
this.teardown()
3838
}
3939
},
4040

@@ -64,7 +64,7 @@ module.exports = {
6464
transition.before(el, ref, vm)
6565
},
6666

67-
unbind: function () {
67+
teardown: function () {
6868
if (this.decompile) {
6969
this.decompile()
7070
this.decompile = null

src/directives/partial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
},
2121

2222
update: function (id) {
23-
this.unbind()
23+
this.teardown()
2424
this.compile(id)
2525
},
2626

@@ -58,7 +58,7 @@ module.exports = {
5858
}
5959
},
6060

61-
unbind: function () {
61+
teardown: function () {
6262
if (this.decompile) {
6363
this.decompile()
6464
this.decompile = null

0 commit comments

Comments
 (0)