(val)
| 25674 | } |
| 25675 | |
| 25676 | function minChange(val) { |
| 25677 | minVal = parseNumberAttrVal(val); |
| 25678 | // ignore changes before model is initialized |
| 25679 | if (isNumberNaN(ctrl.$modelValue)) { |
| 25680 | return; |
| 25681 | } |
| 25682 | |
| 25683 | if (supportsRange) { |
| 25684 | var elVal = element.val(); |
| 25685 | // IE11 doesn't set the el val correctly if the minVal is greater than the element value |
| 25686 | if (minVal > elVal) { |
| 25687 | elVal = minVal; |
| 25688 | element.val(elVal); |
| 25689 | } |
| 25690 | ctrl.$setViewValue(elVal); |
| 25691 | } else { |
| 25692 | // TODO(matsko): implement validateLater to reduce number of validations |
| 25693 | ctrl.$validate(); |
| 25694 | } |
| 25695 | } |
| 25696 | |
| 25697 | function maxChange(val) { |
| 25698 | maxVal = parseNumberAttrVal(val); |
nothing calls this directly
no test coverage detected