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

Function minChange

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

Source from the content-addressed store, hash-verified

27114 }
27115
27116 function minChange(val) {
27117 minVal = parseNumberAttrVal(val);
27118 // ignore changes before model is initialized
27119 if (isNumberNaN(ctrl.$modelValue)) {
27120 return;
27121 }
27122
27123 if (supportsRange) {
27124 var elVal = element.val();
27125 // IE11 doesn't set the el val correctly if the minVal is greater than the element value
27126 if (minVal > elVal) {
27127 elVal = minVal;
27128 element.val(elVal);
27129 }
27130 ctrl.$setViewValue(elVal);
27131 } else {
27132 // TODO(matsko): implement validateLater to reduce number of validations
27133 ctrl.$validate();
27134 }
27135 }
27136
27137 function maxChange(val) {
27138 maxVal = parseNumberAttrVal(val);

Callers

nothing calls this directly

Calls 1

parseNumberAttrValFunction · 0.70

Tested by

no test coverage detected