(val)
| 27114 | } |
| 27115 | |
| 27116 | function minChange(val) { |
| 27117 | minVal = parseNumberAttrVal(val); |
| 27118 | // ignore changes before model is initialized |
| 27119 | if (isNumberNaN(ctrl.$modelValue)) { |
| 27120 | return; |
| 27121 | } |
| 27122 | |
| 27123 | if (supportsRange) { |
| 27124 | var elVal = element.val(); |
| 27125 | // IE11 doesn't set the el val correctly if the minVal is greater than the element value |
| 27126 | if (minVal > elVal) { |
| 27127 | elVal = minVal; |
| 27128 | element.val(elVal); |
| 27129 | } |
| 27130 | ctrl.$setViewValue(elVal); |
| 27131 | } else { |
| 27132 | // TODO(matsko): implement validateLater to reduce number of validations |
| 27133 | ctrl.$validate(); |
| 27134 | } |
| 27135 | } |
| 27136 | |
| 27137 | function maxChange(val) { |
| 27138 | maxVal = parseNumberAttrVal(val); |
nothing calls this directly
no test coverage detected