Skip to content

Commit d29c6e0

Browse files
committed
avoid overriding Vue's internal method "_init".
1 parent 70951e3 commit d29c6e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/create.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function create(tagName, Highcharts) {
1717
}
1818
: { options: { type: Object, required: true } },
1919
methods: {
20-
_init: function() {
20+
_initChart: function() {
2121
this._renderChart();
2222
if (isRenderer) {
2323
this.$watch('width', this._renderChart);
@@ -36,7 +36,7 @@ function create(tagName, Highcharts) {
3636
}
3737
},
3838
mounted: function() {
39-
this._init();
39+
this._initChart();
4040
},
4141
beforeDestroy: function() {
4242
if (isRenderer) {
@@ -51,7 +51,7 @@ function create(tagName, Highcharts) {
5151
},
5252
// compat Vue v1.x
5353
ready: function() {
54-
this._init();
54+
this._initChart();
5555
}
5656
};
5757
}

0 commit comments

Comments
 (0)