From: Christopher Weiss Date: Fri, 30 Jan 2015 16:12:08 +0000 (-0500) Subject: Accidentally left in Array.prototype.map. X-Git-Tag: v2.0-alpha~47^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F711%2Fhead;p=thirdparty%2FChart.js.git Accidentally left in Array.prototype.map. --- diff --git a/src/Chart.Doughnut.js b/src/Chart.Doughnut.js index 8e60879a0..6233ed760 100644 --- a/src/Chart.Doughnut.js +++ b/src/Chart.Doughnut.js @@ -71,13 +71,6 @@ } this.calculateTotal(data); - data = data.map(function (v, i, a){ - if (!v.color) { - v.color = 'hsl(' + (360 * i / a.length) * 360 + ', 100%, 50%)'; - return v; - } - }); - helpers.each(data,function(datapoint, index){ if (!datapoint.color) { datapoint.color = 'hsl(' + (360 * index / data.length) + ', 100%, 50%)';