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

Function addClass

tools/ngui/static/js/lib/angular.js:12583–12590  ·  view source on GitHub ↗
(classVal)

Source from the content-addressed store, hash-verified

12581
12582
12583 function addClass(classVal) {
12584 if (isObject(classVal) && !isArray(classVal)) {
12585 classVal = map(classVal, function(v, k) { if (v) return k });
12586 }
12587 if (classVal) {
12588 element.addClass(isArray(classVal) ? classVal.join(' ') : classVal);
12589 }
12590 }
12591 });
12592}
12593

Callers 2

classDirectiveFunction · 0.85
ngClassWatchActionFunction · 0.85

Calls 4

isObjectFunction · 0.85
isArrayFunction · 0.85
mapFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected