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

Function minChange

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

Source from the content-addressed store, hash-verified

25674 }
25675
25676 function minChange(val) {
25677 minVal = parseNumberAttrVal(val);
25678 // ignore changes before model is initialized
25679 if (isNumberNaN(ctrl.$modelValue)) {
25680 return;
25681 }
25682
25683 if (supportsRange) {
25684 var elVal = element.val();
25685 // IE11 doesn't set the el val correctly if the minVal is greater than the element value
25686 if (minVal > elVal) {
25687 elVal = minVal;
25688 element.val(elVal);
25689 }
25690 ctrl.$setViewValue(elVal);
25691 } else {
25692 // TODO(matsko): implement validateLater to reduce number of validations
25693 ctrl.$validate();
25694 }
25695 }
25696
25697 function maxChange(val) {
25698 maxVal = parseNumberAttrVal(val);

Callers

nothing calls this directly

Calls 1

parseNumberAttrValFunction · 0.70

Tested by

no test coverage detected