MCPcopy Index your code
hub / github.com/binux/qiandao / toggleValidCss

Function toggleValidCss

web/static/components/angularjs/angular.js:16094–16098  ·  view source on GitHub ↗
(isValid, validationErrorKey)

Source from the content-addressed store, hash-verified

16092
16093 // convenience method for easy toggling of classes
16094 function toggleValidCss(isValid, validationErrorKey) {
16095 validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
16096 $animate.removeClass(element, (isValid ? INVALID_CLASS : VALID_CLASS) + validationErrorKey);
16097 $animate.addClass(element, (isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey);
16098 }
16099
16100 /**
16101 * @ngdoc method

Callers 2

FormControllerFunction · 0.85
angular.jsFile · 0.85

Calls 1

snake_caseFunction · 0.85

Tested by

no test coverage detected