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

Function stepChange

lib/test/angular/1.6.7/angular.js:25719–25733  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

25717 }
25718
25719 function stepChange(val) {
25720 stepVal = parseNumberAttrVal(val);
25721 // ignore changes before model is initialized
25722 if (isNumberNaN(ctrl.$modelValue)) {
25723 return;
25724 }
25725
25726 // Some browsers don't adjust the input value correctly, but set the stepMismatch error
25727 if (supportsRange && ctrl.$viewValue !== element.val()) {
25728 ctrl.$setViewValue(element.val());
25729 } else {
25730 // TODO(matsko): implement validateLater to reduce number of validations
25731 ctrl.$validate();
25732 }
25733 }
25734}
25735
25736function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {

Callers

nothing calls this directly

Calls 1

parseNumberAttrValFunction · 0.70

Tested by

no test coverage detected