]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Alternative templating, cleanup. 438/head
authorMiosss <Miosss@users.noreply.github.com>
Thu, 10 Jul 2014 11:13:38 +0000 (13:13 +0200)
committerMiosss <Miosss@users.noreply.github.com>
Thu, 10 Jul 2014 11:13:38 +0000 (13:13 +0200)
Just added brackets.

src/Chart.Core.js

index 8a1c95bbe440d536571d6d0580eeb823a5c62d35..005c258c1c4f27eeec7026f8d9b80dc242e7b5b9 100755 (executable)
                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){