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

Function toggleValidationCss

test/angular/1.7/angular.js:25160–25165  ·  view source on GitHub ↗
(ctrl, validationErrorKey, isValid)

Source from the content-addressed store, hash-verified

25158 }
25159
25160 function toggleValidationCss(ctrl, validationErrorKey, isValid) {
25161 validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
25162
25163 cachedToggleClass(ctrl, VALID_CLASS + validationErrorKey, isValid === true);
25164 cachedToggleClass(ctrl, INVALID_CLASS + validationErrorKey, isValid === false);
25165 }
25166}
25167
25168function isObjectEmpty(obj) {

Callers 1

addSetValidityMethodFunction · 0.70

Calls 2

snake_caseFunction · 0.70
cachedToggleClassFunction · 0.70

Tested by

no test coverage detected