MCPcopy Create free account
hub / github.com/angular-ui/ui-router / stepChange

Function stepChange

test/angular/1.5/angular.js:24931–24945  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

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
24948function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {

Callers

nothing calls this directly

Calls 1

parseNumberAttrValFunction · 0.70

Tested by

no test coverage detected