From: Ema Panz Date: Sat, 25 Jul 2015 15:32:58 +0000 (+0200) Subject: Fix error in generateLegend() function X-Git-Tag: v1.1.0~8^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F1334%2Fhead;p=thirdparty%2FChart.js.git Fix error in generateLegend() function --- diff --git a/src/Chart.Core.js b/src/Chart.Core.js index 44db42dfc..53d515fb8 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.js @@ -967,7 +967,7 @@ return this; }, generateLegend : function(){ - return template(this.options.legendTemplate,this); + return helpers.template(this.options.legendTemplate, {datasets: this.data.datasets}); }, destroy : function(){ this.clear();