(val)
| 27092 | } |
| 27093 | |
| 27094 | function stepChange(val) { |
| 27095 | stepVal = parseNumberAttrVal(val); |
| 27096 | // ignore changes before model is initialized |
| 27097 | if (isNumberNaN(ctrl.$modelValue)) { |
| 27098 | return; |
| 27099 | } |
| 27100 | |
| 27101 | // Some browsers don't adjust the input value correctly, but set the stepMismatch error |
| 27102 | if (!supportsRange) { |
| 27103 | // TODO(matsko): implement validateLater to reduce number of validations |
| 27104 | ctrl.$validate(); |
| 27105 | } else if (ctrl.$viewValue !== element.val()) { |
| 27106 | ctrl.$setViewValue(element.val()); |
| 27107 | } |
| 27108 | } |
| 27109 | } |
| 27110 | |
| 27111 | function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) { |
nothing calls this directly
no test coverage detected