From 5047678799796f6aeb07a19777d66e054e7e14f4 Mon Sep 17 00:00:00 2001 From: Menno Dekker Date: Thu, 17 Sep 2015 10:08:42 +0200 Subject: [PATCH] Tabs to spaces + fixed error --- src/core/core.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } } } -- 2.47.2