MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / toggleValidationCss

Function toggleValidationCss

code/songhop/www/lib/angular/angular.js:21792–21797  ·  view source on GitHub ↗
(validationErrorKey, isValid)

Source from the content-addressed store, hash-verified

21790 }
21791
21792 function toggleValidationCss(validationErrorKey, isValid) {
21793 validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
21794
21795 cachedToggleClass(VALID_CLASS + validationErrorKey, isValid === true);
21796 cachedToggleClass(INVALID_CLASS + validationErrorKey, isValid === false);
21797 }
21798}
21799
21800function isObjectEmpty(obj) {

Callers 1

setValidityFunction · 0.70

Calls 2

snake_caseFunction · 0.70
cachedToggleClassFunction · 0.70

Tested by

no test coverage detected