MCPcopy Create free account
hub / github.com/angular-ui/ui-router / toggleValidationCss

Function toggleValidationCss

test/angular/1.3/angular.js:24057–24062  ·  view source on GitHub ↗
(validationErrorKey, isValid)

Source from the content-addressed store, hash-verified

24055 }
24056
24057 function toggleValidationCss(validationErrorKey, isValid) {
24058 validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
24059
24060 cachedToggleClass(VALID_CLASS + validationErrorKey, isValid === true);
24061 cachedToggleClass(INVALID_CLASS + validationErrorKey, isValid === false);
24062 }
24063}
24064
24065function isObjectEmpty(obj) {

Callers 1

setValidityFunction · 0.70

Calls 2

snake_caseFunction · 0.70
cachedToggleClassFunction · 0.70

Tested by

no test coverage detected