]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix jshint warnings
authorEvert Timberg <evert.timberg@gmail.com>
Mon, 18 May 2015 12:27:18 +0000 (08:27 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Mon, 18 May 2015 12:27:18 +0000 (08:27 -0400)
src/Chart.Scale.js

index 1353c9a7f636d2a957a8c2b81ed25fc04922d0dc..2dd6ace7b3b52221fcb3d9dbc5fa182a984f0d95 100644 (file)
@@ -73,7 +73,7 @@
                                });
                                
                                // Adjust the padding to take into account displaying labels
-                               if (topScales.length == 0 || bottomScales.length == 0) {
+                               if (topScales.length === 0 || bottomScales.length === 0) {
                                        var maxFontHeight = 0;
                                        
                                        var maxFontHeightFunction = function(scaleInstance) {
                                        helpers.each(leftScales, maxFontHeightFunction);
                                        helpers.each(rightScales, maxFontHeightFunction);
                                        
-                                       if (topScales.length == 0) {
+                                       if (topScales.length === 0) {
                                                // Add padding so that we can handle drawing the top nicely
                                                yPadding += 0.75 * maxFontHeight; // 0.75 since padding added on both sides
                                        }
                                        
-                                       if (bottomScales.length == 0) {
+                                       if (bottomScales.length === 0) {
                                                // Add padding so that we can handle drawing the bottom nicely
                                                yPadding += 1.5 * maxFontHeight;
                                        }