From: Evert Timberg Date: Mon, 18 May 2015 12:27:18 +0000 (-0400) Subject: Fix jshint warnings X-Git-Tag: v2.0-alpha~8^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=454f519b6ddc2d60dba0ae2257e0252c6555374c;p=thirdparty%2FChart.js.git Fix jshint warnings --- diff --git a/src/Chart.Scale.js b/src/Chart.Scale.js index 1353c9a7f..2dd6ace7b 100644 --- a/src/Chart.Scale.js +++ b/src/Chart.Scale.js @@ -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) { @@ -86,12 +86,12 @@ 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; }