]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Tabs to spaces + fixed error 1458/head
authorMenno Dekker <menno.dekker@erasmusmc.nl>
Thu, 17 Sep 2015 08:08:42 +0000 (10:08 +0200)
committerMenno Dekker <menno.dekker@erasmusmc.nl>
Thu, 17 Sep 2015 08:08:42 +0000 (10:08 +0200)
src/core/core.controller.js

index 3833cd153c05763be7352a26c85ff63854100445..806248485a98372f5716752c76553c0975011a40 100644 (file)
                        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);
                                        }
                                }
                        }