MCPcopy Index your code
hub / github.com/angular-ui/ui-router / ngClassWatchAction

Function ngClassWatchAction

test/angular/1.2/angular.js:18606–18617  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

18604 }
18605
18606 function ngClassWatchAction(newVal) {
18607 if (selector === true || scope.$index % 2 === selector) {
18608 var newClasses = arrayClasses(newVal || []);
18609 if (!oldVal) {
18610 addClasses(newClasses);
18611 } else if (!equals(newVal,oldVal)) {
18612 var oldClasses = arrayClasses(oldVal);
18613 updateClasses(oldClasses, newClasses);
18614 }
18615 }
18616 oldVal = shallowCopy(newVal);
18617 }
18618 }
18619 };
18620

Callers 1

classDirectiveFunction · 0.70

Calls 5

arrayClassesFunction · 0.70
addClassesFunction · 0.70
equalsFunction · 0.70
updateClassesFunction · 0.70
shallowCopyFunction · 0.70

Tested by

no test coverage detected