Skip to content

Commit

Permalink
0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhenye committed Oct 14, 2016
1 parent 1843228 commit 6e49f77
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dist/vue-highcharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function create(tagName, Highcharts) {
if (isRenderer) {
this.renderer = new Ctor(this.$el, this.width, this.height);
} else {
var opts = JSON.parse(JSON.stringify(this.options));
var opts = this.options || {};
opts.chart = opts.chart || {};
opts.chart.renderTo = this.$el;
this.chart = new Ctor(opts);
Expand All @@ -45,6 +45,10 @@ function create(tagName, Highcharts) {
},
beforeDestroy: function() {
!isRenderer && this.chart.destroy();
},
// compat Vue v1.x
ready: function() {
this._renderChart();
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-highcharts.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-highcharts",
"version": "0.0.3",
"version": "0.0.4",
"description": "Highcharts component for Vue",
"main": "dist/vue-highcharts.js",
"jsnext:main": "src/index.js",
Expand Down

0 comments on commit 6e49f77

Please sign in to comment.