Fix charts in IE

since IE apparently doesn't support arrow function expression (and throws a syntax error)
This commit is contained in:
devlearner 2018-01-08 07:49:32 +00:00 committed by GitHub
parent f9fc9b1889
commit 495158b9c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,9 @@ const verticalLinePlugin = {
afterDatasetsDraw: function (chart, easing) {
if (chart.config.lineAtIndex) {
chart.config.lineAtIndex.forEach(pointIndex => this.renderVerticalLine(chart, pointIndex));
chart.config.lineAtIndex.forEach(function(pointIndex) {
this.renderVerticalLine(chart, pointIndex);
}, this);
}
}
};