Skip to content

Commit

Permalink
Set back lineEnabled()
Browse files Browse the repository at this point in the history
  • Loading branch information
loicbourgois committed Jan 11, 2018
1 parent 66c6dd7 commit 3017467
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/controllers/controller.line.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ defaults._set('line', {

module.exports = function(Chart) {

function lineEnabled(dataset, options) {
return helpers.valueOrDefault(dataset.showLine, options.showLines);
}

Chart.controllers.line = Chart.DatasetController.extend({

datasetElementType: elements.Line,
Expand Down Expand Up @@ -327,7 +331,7 @@ module.exports = function(Chart) {
},

lineEnabled: function(dataset, options) {
return helpers.valueOrDefault(dataset.showLine, options.showLines);
return lineEnabled(dataset, options);
},

});
Expand Down

0 comments on commit 3017467

Please sign in to comment.