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

Function ngClassWatchAction

lib/test/angular/1.5.0/angular.js:23662–23673  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

23660 }
23661
23662 function ngClassWatchAction(newVal) {
23663 if (selector === true || scope.$index % 2 === selector) {
23664 var newClasses = arrayClasses(newVal || []);
23665 if (!oldVal) {
23666 addClasses(newClasses);
23667 } else if (!equals(newVal,oldVal)) {
23668 var oldClasses = arrayClasses(oldVal);
23669 updateClasses(oldClasses, newClasses);
23670 }
23671 }
23672 oldVal = shallowCopy(newVal);
23673 }
23674 }
23675 };
23676

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