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

Function removeClass

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

Source from the content-addressed store, hash-verified

12573
12574
12575 function removeClass(classVal) {
12576 if (isObject(classVal) && !isArray(classVal)) {
12577 classVal = map(classVal, function(v, k) { if (v) return k });
12578 }
12579 element.removeClass(isArray(classVal) ? classVal.join(' ') : classVal);
12580 }
12581
12582
12583 function addClass(classVal) {

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