MCPcopy Index your code
hub / github.com/angular-ui/ui-router / toggleValidationCss

Function toggleValidationCss

test/angular/1.6/angular.js:24272–24277  ·  view source on GitHub ↗
(ctrl, validationErrorKey, isValid)

Source from the content-addressed store, hash-verified

24270 }
24271
24272 function toggleValidationCss(ctrl, validationErrorKey, isValid) {
24273 validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
24274
24275 cachedToggleClass(ctrl, VALID_CLASS + validationErrorKey, isValid === true);
24276 cachedToggleClass(ctrl, INVALID_CLASS + validationErrorKey, isValid === false);
24277 }
24278}
24279
24280function isObjectEmpty(obj) {

Callers 1

addSetValidityMethodFunction · 0.70

Calls 2

snake_caseFunction · 0.70
cachedToggleClassFunction · 0.70

Tested by

no test coverage detected