MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / safeAddClass

Function safeAddClass

lib/test/angular/1.5.0/angular.js:7978–7985  ·  view source on GitHub ↗
($element, className)

Source from the content-addressed store, hash-verified

7976 }
7977
7978 function safeAddClass($element, className) {
7979 try {
7980 $element.addClass(className);
7981 } catch (e) {
7982 // ignore, since it means that we are trying to set class on
7983 // SVG element, where class name is read-only.
7984 }
7985 }
7986
7987
7988 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