(val)
| 26255 | } |
| 26256 | |
| 26257 | function stepChange(val) { |
| 26258 | stepVal = parseNumberAttrVal(val); |
| 26259 | // ignore changes before model is initialized |
| 26260 | if (isNumberNaN(ctrl.$modelValue)) { |
| 26261 | return; |
| 26262 | } |
| 26263 | |
| 26264 | // Some browsers don't adjust the input value correctly, but set the stepMismatch error |
| 26265 | if (supportsRange && ctrl.$viewValue !== element.val()) { |
| 26266 | ctrl.$setViewValue(element.val()); |
| 26267 | } else { |
| 26268 | // TODO(matsko): implement validateLater to reduce number of validations |
| 26269 | ctrl.$validate(); |
| 26270 | } |
| 26271 | } |
| 26272 | } |
| 26273 | |
| 26274 | function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) { |
nothing calls this directly
no test coverage detected