Skip to content

Commit

Permalink
only merge newOptions since it must exists
Browse files Browse the repository at this point in the history
  • Loading branch information
xg-wang committed Apr 29, 2017
1 parent 05d600c commit 012533c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = function(Chart) {
newOptions = helpers.configMerge(
Chart.defaults.global,
Chart.defaults[chart.config.type],
newOptions || {});
newOptions);
chart.options = newOptions;
chart.ensureScalesHaveIDs();

Expand Down

0 comments on commit 012533c

Please sign in to comment.