MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / safeAddClass

Function safeAddClass

code/songhop/www/lib/angular/angular.js:6828–6835  ·  view source on GitHub ↗
($element, className)

Source from the content-addressed store, hash-verified

6826
6827
6828 function safeAddClass($element, className) {
6829 try {
6830 $element.addClass(className);
6831 } catch (e) {
6832 // ignore, since it means that we are trying to set class on
6833 // SVG element, where class name is read-only.
6834 }
6835 }
6836
6837
6838 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