Fix charts in IE

since IE apparently doesn't support arrow function expression (and throws a syntax error)
This commit is contained in:
devlearner authored and GitHub committed 2018-01-08 07:49:32 +00:00
1 parent f9fc9b1889
commit 495158b9c9
1 file changed
+3 -1
+3 -1
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);
}
}
};