MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / ngClassWatchAction

Function ngClassWatchAction

web/static/bower_components/angular/angular.js:22665–22676  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

22663 }
22664
22665 function ngClassWatchAction(newVal) {
22666 if (selector === true || scope.$index % 2 === selector) {
22667 var newClasses = arrayClasses(newVal || []);
22668 if (!oldVal) {
22669 addClasses(newClasses);
22670 } else if (!equals(newVal,oldVal)) {
22671 var oldClasses = arrayClasses(oldVal);
22672 updateClasses(oldClasses, newClasses);
22673 }
22674 }
22675 oldVal = shallowCopy(newVal);
22676 }
22677 }
22678 };
22679

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