Skip to content

Commit

Permalink
Update justgage.js
Browse files Browse the repository at this point in the history
I spotted a bug, when setting the max to 0.
Since 0 is a falsy value, the maximum was represented as 100.
  • Loading branch information
RaoulSchaffranek committed May 3, 2013
1 parent 1a9f6da commit a8e733b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@

// min : int
// min value
min : (config.min) ? parseFloat(config.min) : 0,
min : (config.min !== undefined) ? parseFloat(config.min) : 0,

// max : int
// max value
max : (config.max) ? parseFloat(config.max) : 100,
max : (config.max !== undefined) ? parseFloat(config.max) : 100,

// humanFriendlyDecimal : int
// number of decimal places for our human friendly number to contain
Expand Down

0 comments on commit a8e733b

Please sign in to comment.