]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix error in generateLegend() function 1334/head
authorEma Panz <thePanz@users.noreply.github.com>
Sat, 25 Jul 2015 15:32:58 +0000 (17:32 +0200)
committerEma Panz <thePanz@users.noreply.github.com>
Sat, 25 Jul 2015 15:32:58 +0000 (17:32 +0200)
src/Chart.Core.js

index 44db42dfcb9fbbe8c210a6a22fbc1541446995e3..53d515fb83bd932c37b581a318a854eb90e0d1ad 100755 (executable)
                        return this;
                },
                generateLegend : function(){
-                       return template(this.options.legendTemplate,this);
+                       return helpers.template(this.options.legendTemplate, {datasets: this.data.datasets});
                },
                destroy : function(){
                        this.clear();