MCPcopy Index your code
hub / github.com/jquery/esprima / toggleValidCss

Function toggleValidCss

test/3rdparty/angular-1.2.5.js:15153–15158  ·  view source on GitHub ↗
(isValid, validationErrorKey)

Source from the content-addressed store, hash-verified

15151
15152 // convenience method for easy toggling of classes
15153 function toggleValidCss(isValid, validationErrorKey) {
15154 validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
15155 element.
15156 removeClass((isValid ? INVALID_CLASS : VALID_CLASS) + validationErrorKey).
15157 addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey);
15158 }
15159
15160 /**
15161 * @ngdoc function

Callers 2

FormControllerFunction · 0.85
angular-1.2.5.jsFile · 0.85

Calls 1

snake_caseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…