MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / ngClassWatchAction

Function ngClassWatchAction

test/fixtures/foo.js:18411–18422  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

18409 }
18410
18411 function ngClassWatchAction(newVal) {
18412 if (selector === true || scope.$index % 2 === selector) {
18413 var newClasses = arrayClasses(newVal || []);
18414 if (!oldVal) {
18415 addClasses(newClasses);
18416 } else if (!equals(newVal,oldVal)) {
18417 var oldClasses = arrayClasses(oldVal);
18418 updateClasses(oldClasses, newClasses);
18419 }
18420 }
18421 oldVal = shallowCopy(newVal);
18422 }
18423 }
18424 };
18425

Callers 1

classDirectiveFunction · 0.85

Calls 5

arrayClassesFunction · 0.85
addClassesFunction · 0.85
equalsFunction · 0.85
updateClassesFunction · 0.85
shallowCopyFunction · 0.85

Tested by

no test coverage detected