From bb6237a15e011b7cbf75fc0e6eb3c8d9e9733658 Mon Sep 17 00:00:00 2001 From: Christopher Weiss Date: Fri, 30 Jan 2015 11:12:08 -0500 Subject: [PATCH] Accidentally left in Array.prototype.map. --- src/Chart.Doughnut.js | 7 ------- 1 file changed, 7 deletions(-) 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%)'; -- 2.47.2