Skip to content

Commit

Permalink
FLOE-399: Leaving a TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jobara committed Jul 6, 2015
1 parent 864e7cf commit c9efaf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/percentage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ https://github.com/gpii/universal/LICENSE.txt
elm.text(output);
};

// used to provide a default value if a model or someother value had not been set.
//TODO: consider refactoring this into a general function that returns a default value if a condition isn't met.
// Used to provide a default value if a model or someother value had not been set.
gpii.chartAuthoring.percentage.percentageIfValue = function (percentage, value, defPercentage) {
defPercentage = defPercentage || "";
return !fluid.isValue(value) ? defPercentage : gpii.chartAuthoring.percentage.retrieveVal(percentage);
Expand Down

0 comments on commit c9efaf5

Please sign in to comment.