Skip to content

Commit 3377a57

Browse files
committed
fix options with function
1 parent eefaa42 commit 3377a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function create(tagName, Highcharts) {
2020
if (isRenderer) {
2121
this.renderer = new Ctor(this.$el, this.width, this.height);
2222
} else {
23-
var opts = JSON.parse(JSON.stringify(this.options));
23+
var opts = this.options || {};
2424
opts.chart = opts.chart || {};
2525
opts.chart.renderTo = this.$el;
2626
this.chart = new Ctor(opts);

0 commit comments

Comments
 (0)