From: Miosss Date: Thu, 10 Jul 2014 11:13:38 +0000 (+0200) Subject: Alternative templating, cleanup. X-Git-Tag: v1.0.1-beta.3~4^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F438%2Fhead;p=thirdparty%2FChart.js.git Alternative templating, cleanup. Just added brackets. --- diff --git a/src/Chart.Core.js b/src/Chart.Core.js index 8a1c95bbe..005c258c1 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.js @@ -404,7 +404,9 @@ template = helpers.template = function(templateString, valuesObject){ // If templateString is function rather than string-template - call the function for valuesObject if(templateString instanceof Function) + { return templateString(valuesObject); + } var cache = {}; function tmpl(str, data){