MCPcopy
hub / github.com/angular-ui/ui-grid / ngClassWatchAction

Function ngClassWatchAction

lib/test/angular/1.4.3/angular.js:22443–22454  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

22441 }
22442
22443 function ngClassWatchAction(newVal) {
22444 if (selector === true || scope.$index % 2 === selector) {
22445 var newClasses = arrayClasses(newVal || []);
22446 if (!oldVal) {
22447 addClasses(newClasses);
22448 } else if (!equals(newVal,oldVal)) {
22449 var oldClasses = arrayClasses(oldVal);
22450 updateClasses(oldClasses, newClasses);
22451 }
22452 }
22453 oldVal = shallowCopy(newVal);
22454 }
22455 }
22456 };
22457

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