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

Function stepChange

lib/test/angular/1.7.0/angular.js:26257–26271  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseNumberAttrValFunction · 0.70

Tested by

no test coverage detected