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

Function ngClassWatchAction

tools/ngui/static/js/lib/angular.js:12564–12572  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

12562
12563
12564 function ngClassWatchAction(newVal) {
12565 if (selector === true || scope.$index % 2 === selector) {
12566 if (oldVal && !equals(newVal,oldVal)) {
12567 removeClass(oldVal);
12568 }
12569 addClass(newVal);
12570 }
12571 oldVal = copy(newVal);
12572 }
12573
12574
12575 function removeClass(classVal) {

Callers 1

classDirectiveFunction · 0.85

Calls 4

equalsFunction · 0.85
removeClassFunction · 0.85
addClassFunction · 0.85
copyFunction · 0.70

Tested by

no test coverage detected