Skip to content

Commit 1784dfb

Browse files
committed
Rename method to avoid confusion
1 parent c201ed6 commit 1784dfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ export default {
1515
} }, this.$slots.default)
1616
},
1717
mounted: function () {
18-
this.render()
18+
this.paint()
1919
},
2020
beforeUpdate: function () {
2121
this.reset()
2222
},
2323
updated: function () {
24-
this.render()
24+
this.paint()
2525
},
2626
beforeDestroy: function () {
2727
this.reset()
2828
},
2929
methods: {
30-
render: function () {
30+
paint: function () {
3131
render(this.$el.parentNode.insertBefore(this._ = document.createElement('span'), this.$el).appendChild(this.$el), (function(_this) {
3232
return function (el) {
3333
_this.$el.parentNode.replaceChild(el, _this.$el)

0 commit comments

Comments
 (0)