MCPcopy Index your code
hub / github.com/binux/qiandao / ngClassWatchAction

Function ngClassWatchAction

web/static/components/angularjs/angular.js:18353–18364  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

18351 }
18352
18353 function ngClassWatchAction(newVal) {
18354 if (selector === true || scope.$index % 2 === selector) {
18355 var newClasses = arrayClasses(newVal || []);
18356 if (!oldVal) {
18357 addClasses(newClasses);
18358 } else if (!equals(newVal,oldVal)) {
18359 var oldClasses = arrayClasses(oldVal);
18360 updateClasses(oldClasses, newClasses);
18361 }
18362 }
18363 oldVal = shallowCopy(newVal);
18364 }
18365 }
18366 };
18367

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