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

Function cachedToggleClass

test/angular/1.4/angular.js:26527–26535  ·  view source on GitHub ↗
(className, switchValue)

Source from the content-addressed store, hash-verified

26525 }
26526
26527 function cachedToggleClass(className, switchValue) {
26528 if (switchValue && !classCache[className]) {
26529 $animate.addClass($element, className);
26530 classCache[className] = true;
26531 } else if (!switchValue && classCache[className]) {
26532 $animate.removeClass($element, className);
26533 classCache[className] = false;
26534 }
26535 }
26536
26537 function toggleValidationCss(validationErrorKey, isValid) {
26538 validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';

Callers 2

setValidityFunction · 0.70
toggleValidationCssFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected