MCPcopy Create free account
hub / github.com/binux/qiandao / safeAddClass

Function safeAddClass

web/static/components/angularjs/angular.js:5971–5978  ·  view source on GitHub ↗
($element, className)

Source from the content-addressed store, hash-verified

5969 }
5970
5971 function safeAddClass($element, className) {
5972 try {
5973 $element.addClass(className);
5974 } catch(e) {
5975 // ignore, since it means that we are trying to set class on
5976 // SVG element, where class name is read-only.
5977 }
5978 }
5979
5980 /**
5981 * Compile function matches each node in nodeList against the directives. Once all directives

Callers 6

compileFunction · 0.85
compileNodesFunction · 0.85
nodeLinkFnFunction · 0.85
mergeTemplateAttributesFunction · 0.85
compileTemplateUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected