Content-Length: 284762 | pFad | http://github.com/weizhenye/vue-highcharts/commit/d29c6e0862ec143a8f4d1661c05e008a74c0b4c0

88 avoid overriding Vue's internal method "_init". · weizhenye/vue-highcharts@d29c6e0 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/weizhenye/vue-highcharts/commit/d29c6e0862ec143a8f4d1661c05e008a74c0b4c0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy