(val)
| 24929 | } |
| 24930 | |
| 24931 | function stepChange(val) { |
| 24932 | stepVal = parseNumberAttrVal(val); |
| 24933 | // ignore changes before model is initialized |
| 24934 | if (isNumberNaN(ctrl.$modelValue)) { |
| 24935 | return; |
| 24936 | } |
| 24937 | |
| 24938 | // Some browsers don't adjust the input value correctly, but set the stepMismatch error |
| 24939 | if (supportsRange && ctrl.$viewValue !== element.val()) { |
| 24940 | ctrl.$setViewValue(element.val()); |
| 24941 | } else { |
| 24942 | // TODO(matsko): implement validateLater to reduce number of validations |
| 24943 | ctrl.$validate(); |
| 24944 | } |
| 24945 | } |
| 24946 | } |
| 24947 | |
| 24948 | function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) { |
nothing calls this directly
no test coverage detected