From: David Cochrum Date: Fri, 11 Mar 2016 17:19:12 +0000 (-0500) Subject: Fix multi-dataset bar highlighting and bar highlight color logic X-Git-Tag: v1.1.0~4^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48c082b04ae3ab303b6158c7bfa1bbe41cf9adf2;p=thirdparty%2FChart.js.git Fix multi-dataset bar highlighting and bar highlight color logic --- diff --git a/Chart.js b/Chart.js index 21edb16a8..7cdf767e3 100644 --- a/Chart.js +++ b/Chart.js @@ -2335,10 +2335,8 @@ bar.restore(['fillColor', 'strokeColor']); }); helpers.each(activeBars, function(activeBar){ - if (activeBar) { - activeBar.fillColor = activeBar.highlightFill; - activeBar.strokeColor = activeBar.highlightStroke; - } + activeBar.fillColor = activeBar.highlightFill; + activeBar.strokeColor = activeBar.highlightStroke; }); this.showTooltip(activeBars); }); @@ -3731,4 +3729,4 @@ -}).call(this); +}).call(this); \ No newline at end of file