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

Function safeAddClass

test/angular/1.3/angular.js:6906–6913  ·  view source on GitHub ↗
($element, className)

Source from the content-addressed store, hash-verified

6904
6905
6906 function safeAddClass($element, className) {
6907 try {
6908 $element.addClass(className);
6909 } catch (e) {
6910 // ignore, since it means that we are trying to set class on
6911 // SVG element, where class name is read-only.
6912 }
6913 }
6914
6915
6916 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