Skip to content

Commit

Permalink
chore: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
assisrafael committed Apr 10, 2016
1 parent 95949c8 commit 1174428
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,6 @@ m.factory('PreFormatters', [function() {
prepareNumberToFormatter: prepareNumberToFormatter
};
}])
.factory('NumberValidators', [function() {
return {
maxNumber: function maxValidator(ctrl, value, limit) {
var max = parseFloat(limit);
var validity = ctrl.$isEmpty(value) || isNaN(max)|| value <= max;
ctrl.$setValidity('max', validity);
return value;
},
minNumber: function minValidator(ctrl, value, limit) {
var min = parseFloat(limit);
var validity = ctrl.$isEmpty(value) || isNaN(min) || value >= min;
ctrl.$setValidity('min', validity);
return value;
}
};
}])
.factory('NumberMasks', [function() {
return {
viewMask: function(decimals, decimalDelimiter, thousandsDelimiter) {
Expand Down

0 comments on commit 1174428

Please sign in to comment.