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

Function safeAddClass

lib/test/angular/1.4.3/angular.js:7303–7310  ·  view source on GitHub ↗
($element, className)

Source from the content-addressed store, hash-verified

7301
7302
7303 function safeAddClass($element, className) {
7304 try {
7305 $element.addClass(className);
7306 } catch (e) {
7307 // ignore, since it means that we are trying to set class on
7308 // SVG element, where class name is read-only.
7309 }
7310 }
7311
7312
7313 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