(val)
| 27157 | } |
| 27158 | |
| 27159 | function stepChange(val) { |
| 27160 | stepVal = parseNumberAttrVal(val); |
| 27161 | // ignore changes before model is initialized |
| 27162 | if (isNumberNaN(ctrl.$modelValue)) { |
| 27163 | return; |
| 27164 | } |
| 27165 | |
| 27166 | // Some browsers don't adjust the input value correctly, but set the stepMismatch error |
| 27167 | if (!supportsRange) { |
| 27168 | // TODO(matsko): implement validateLater to reduce number of validations |
| 27169 | ctrl.$validate(); |
| 27170 | } else if (ctrl.$viewValue !== element.val()) { |
| 27171 | ctrl.$setViewValue(element.val()); |
| 27172 | } |
| 27173 | } |
| 27174 | } |
| 27175 | |
| 27176 | function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) { |
nothing calls this directly
no test coverage detected