From: Menno Dekker Date: Thu, 17 Sep 2015 08:08:42 +0000 (+0200) Subject: Tabs to spaces + fixed error X-Git-Tag: 2.0.0-alpha4~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1458%2Fhead;p=thirdparty%2FChart.js.git Tabs to spaces + fixed error --- diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 3833cd153..806248485 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -331,9 +331,9 @@ for (var datasetIndex = 0; datasetIndex < this.data.datasets.length; datasetIndex++) { for (var elementIndex = 0; elementIndex < this.data.datasets[datasetIndex].metaData.length; elementIndex++) { if (this.data.datasets[datasetIndex].metaData[elementIndex].inLabelRange(eventPosition.x, eventPosition.y)) { - helpers.each(this.data.datasets[datasetIndex].metaData, function(element, index) { - elementsArray.push(this.data.datasets[datasetIndex].metaData); - }, this); + helpers.each(this.data.datasets[datasetIndex].metaData, function(element, index) { + elementsArray.push(element); + }, this); } } }