MCPcopy Create free account
hub / github.com/apache/cloudstack / safeAddClass

Function safeAddClass

tools/ngui/static/js/lib/angular.js:3929–3936  ·  view source on GitHub ↗
($element, className)

Source from the content-addressed store, hash-verified

3927 }
3928
3929 function safeAddClass($element, className) {
3930 try {
3931 $element.addClass(className);
3932 } catch(e) {
3933 // ignore, since it means that we are trying to set class on
3934 // SVG element, where class name is read-only.
3935 }
3936 }
3937
3938 /**
3939 * Compile function matches each node in nodeList against the directives. Once all directives

Callers 4

compileFunction · 0.85
applyDirectivesToNodeFunction · 0.85
mergeTemplateAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected