Skip to content

Commit

Permalink
Fix param name
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrosa90 committed Feb 2, 2016
1 parent 73cbf1e commit d1bc47d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,8 @@ JustGage = function(config) {
}

obj.txtMinimum = min;
if (obj.config.txtMin) {
obj.txtMinimum = obj.config.txtMin;
if (obj.config.minTxt) {
obj.txtMinimum = obj.config.minTxt;
} else if (obj.config.humanFriendly) {
obj.txtMinimum = humanFriendlyNumber(min, obj.config.humanFriendlyDecimal);
} else if (obj.config.formatNumber) {
Expand All @@ -728,8 +728,8 @@ JustGage = function(config) {
max = obj.config.min;
}
obj.txtMaximum = max;
if (obj.config.txtMax) {
obj.txtMaximum = obj.config.txtMax;
if (obj.config.maxTxt) {
obj.txtMaximum = obj.config.maxTxt;
} else if (obj.config.humanFriendly) {
obj.txtMaximum = humanFriendlyNumber(max, obj.config.humanFriendlyDecimal);
} else if (obj.config.formatNumber) {
Expand Down Expand Up @@ -864,8 +864,8 @@ JustGage.prototype.refresh = function(val, max) {
// TODO: update customSectors

obj.txtMaximum = obj.config.max;
if (obj.config.txtMax) {
obj.txtMaximum = obj.config.txtMax;
if (obj.config.maxTxt) {
obj.txtMaximum = obj.config.maxTxt;
} else if (obj.config.humanFriendly) {
obj.txtMaximum = humanFriendlyNumber(obj.config.max, obj.config.humanFriendlyDecimal);
} else if (obj.config.formatNumber) {
Expand Down

0 comments on commit d1bc47d

Please sign in to comment.