From 495158b9c9c88e858c526217e46ac63f7899aa6d Mon Sep 17 00:00:00 2001 From: devlearner Date: Mon, 8 Jan 2018 07:49:32 +0000 Subject: [PATCH] Fix charts in IE since IE apparently doesn't support arrow function expression (and throws a syntax error) --- public/js/ff/charts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/ff/charts.js b/public/js/ff/charts.js index a67009b729..aa01a761fd 100644 --- a/public/js/ff/charts.js +++ b/public/js/ff/charts.js @@ -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); } } };