MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / stepChange

Function stepChange

lib/test/angular/1.8.0/angular.js:27159–27173  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseNumberAttrValFunction · 0.70

Tested by

no test coverage detected