(val)
| 27070 | } |
| 27071 | |
| 27072 | function maxChange(val) { |
| 27073 | maxVal = parseNumberAttrVal(val); |
| 27074 | // ignore changes before model is initialized |
| 27075 | if (isNumberNaN(ctrl.$modelValue)) { |
| 27076 | return; |
| 27077 | } |
| 27078 | |
| 27079 | if (supportsRange) { |
| 27080 | var elVal = element.val(); |
| 27081 | // IE11 doesn't set the el val correctly if the maxVal is less than the element value |
| 27082 | if (maxVal < elVal) { |
| 27083 | element.val(maxVal); |
| 27084 | // IE11 and Chrome don't set the value to the minVal when max < min |
| 27085 | elVal = maxVal < minVal ? minVal : maxVal; |
| 27086 | } |
| 27087 | ctrl.$setViewValue(elVal); |
| 27088 | } else { |
| 27089 | // TODO(matsko): implement validateLater to reduce number of validations |
| 27090 | ctrl.$validate(); |
| 27091 | } |
| 27092 | } |
| 27093 | |
| 27094 | function stepChange(val) { |
| 27095 | stepVal = parseNumberAttrVal(val); |
nothing calls this directly
no test coverage detected