MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / ngClassWatchAction

Function ngClassWatchAction

code/songhop/www/lib/angular/angular.js:22081–22092  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

22079 }
22080
22081 function ngClassWatchAction(newVal) {
22082 if (selector === true || scope.$index % 2 === selector) {
22083 var newClasses = arrayClasses(newVal || []);
22084 if (!oldVal) {
22085 addClasses(newClasses);
22086 } else if (!equals(newVal,oldVal)) {
22087 var oldClasses = arrayClasses(oldVal);
22088 updateClasses(oldClasses, newClasses);
22089 }
22090 }
22091 oldVal = shallowCopy(newVal);
22092 }
22093 }
22094 };
22095

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