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

Function JQLiteAddClass

tools/ngui/static/js/lib/angular.js:1707–1715  ·  view source on GitHub ↗
(element, cssClasses)

Source from the content-addressed store, hash-verified

1705}
1706
1707function JQLiteAddClass(element, cssClasses) {
1708 if (cssClasses) {
1709 forEach(cssClasses.split(' '), function(cssClass) {
1710 if (!JQLiteHasClass(element, cssClass)) {
1711 element.className = trim(element.className + ' ' + trim(cssClass));
1712 }
1713 });
1714 }
1715}
1716
1717function JQLiteAddNodes(root, elements) {
1718 if (elements) {

Callers

nothing calls this directly

Calls 3

forEachFunction · 0.85
JQLiteHasClassFunction · 0.85
trimFunction · 0.85

Tested by

no test coverage detected