]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix mixed whitespace
authorNick Downie <hello@nickdownie.com>
Sat, 3 Jan 2015 15:40:33 +0000 (15:40 +0000)
committerNick Downie <hello@nickdownie.com>
Sat, 3 Jan 2015 15:40:33 +0000 (15:40 +0000)
src/Chart.Core.js

index 03b99b45a582e69ae57ea79f3ed3e5bbae3bb0d1..f1a3869c40f3f227aa15b130b3cc5ec2632c562f 100755 (executable)
@@ -92,8 +92,8 @@
                        // Boolean - whether or not the chart should be responsive and resize when the browser does.
                        responsive: false,
 
-                        // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
-                        maintainAspectRatio: true,
+                       // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
+                       maintainAspectRatio: true,
 
                        // Boolean - Determines whether to draw tooltips on the canvas or not - attaches events to touchmove & mousemove
                        showTooltips: true,
                //Templating methods
                //Javascript micro templating by John Resig - source at http://ejohn.org/blog/javascript-micro-templating/
                template = helpers.template = function(templateString, valuesObject){
-                        // If templateString is function rather than string-template - call the function for valuesObject
+
+                       // If templateString is function rather than string-template - call the function for valuesObject
+
                        if(templateString instanceof Function){
                                return templateString(valuesObject);
                        }
                                newHeight = this.options.maintainAspectRatio ? newWidth / this.chart.aspectRatio : getMaximumHeight(this.chart.canvas);
 
                        canvas.width = this.chart.width = newWidth;
-                       canvas.height =  this.chart.height = newHeight;
+                       canvas.height = this.chart.height = newHeight;
 
                        retinaScale(this.chart);