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

Function ngClassWatchAction

test/angular/1.3/angular.js:20881–20892  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

20879 }
20880
20881 function ngClassWatchAction(newVal) {
20882 if (selector === true || scope.$index % 2 === selector) {
20883 var newClasses = arrayClasses(newVal || []);
20884 if (!oldVal) {
20885 addClasses(newClasses);
20886 } else if (!equals(newVal,oldVal)) {
20887 var oldClasses = arrayClasses(oldVal);
20888 updateClasses(oldClasses, newClasses);
20889 }
20890 }
20891 oldVal = shallowCopy(newVal);
20892 }
20893 }
20894 };
20895

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