From d193951dc5871aac230f3f778ec3c5c0cf1d47af Mon Sep 17 00:00:00 2001 From: Miosss Date: Thu, 10 Jul 2014 13:13:38 +0200 Subject: [PATCH] Alternative templating, cleanup. Just added brackets. --- src/Chart.Core.js | 2 ++ 1 file changed, 2 insertions(+) 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){ -- 2.47.2