MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / cachedToggleClass

Function cachedToggleClass

lib/test/angular/1.4.3/angular.js:25661–25669  ·  view source on GitHub ↗
(className, switchValue)

Source from the content-addressed store, hash-verified

25659 }
25660
25661 function cachedToggleClass(className, switchValue) {
25662 if (switchValue && !classCache[className]) {
25663 $animate.addClass($element, className);
25664 classCache[className] = true;
25665 } else if (!switchValue && classCache[className]) {
25666 $animate.removeClass($element, className);
25667 classCache[className] = false;
25668 }
25669 }
25670
25671 function toggleValidationCss(validationErrorKey, isValid) {
25672 validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';

Callers 2

setValidityFunction · 0.70
toggleValidationCssFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected