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

Function safeAddClass

test/angular/1.4/angular.js:7727–7734  ·  view source on GitHub ↗
($element, className)

Source from the content-addressed store, hash-verified

7725
7726
7727 function safeAddClass($element, className) {
7728 try {
7729 $element.addClass(className);
7730 } catch (e) {
7731 // ignore, since it means that we are trying to set class on
7732 // SVG element, where class name is read-only.
7733 }
7734 }
7735
7736
7737 var startSymbol = $interpolate.startSymbol(),

Callers 3

$CompileProviderFunction · 0.70
mergeTemplateAttributesFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected