MCPcopy Create free account
hub / github.com/choosehappy/QuickAnnotator / toggleValidationCss

Function toggleValidationCss

static/js/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.85

Calls 2

snake_caseFunction · 0.85
cachedToggleClassFunction · 0.85

Tested by

no test coverage detected