Skip to content

Commit

Permalink
#46 - f*king brace
Browse files Browse the repository at this point in the history
  • Loading branch information
toorshia committed Apr 1, 2013
1 parent b34fb0f commit cec9474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ JustGage.prototype.refresh = function(val, max) {
// overflow values
originalVal = val;
displayVal = val;
if ((val * 1) > (this.config.max * 1) {val = (this.config.max * 1);}
if ((val * 1) > (this.config.max * 1)) {val = (this.config.max * 1);}
if ((val * 1) < (this.config.min * 1)) {val = (this.config.min * 1);}

color = getColor(val, (val - this.config.min) / (this.config.max - this.config.min), this.config.levelColors, this.config.noGradient, this.config.customSectors);
Expand Down

0 comments on commit cec9474

Please sign in to comment.