MCPcopy Index your code
hub / github.com/angular-ui/ui-router / unsetAndCleanup

Function unsetAndCleanup

test/angular/1.5/angular.js:29036–29043  ·  view source on GitHub ↗
(name, value, controller)

Source from the content-addressed store, hash-verified

29034 }
29035
29036 function unsetAndCleanup(name, value, controller) {
29037 if (ctrl[name]) {
29038 unset(ctrl[name], value, controller);
29039 }
29040 if (isObjectEmpty(ctrl[name])) {
29041 ctrl[name] = undefined;
29042 }
29043 }
29044
29045 function cachedToggleClass(className, switchValue) {
29046 if (switchValue && !classCache[className]) {

Callers 1

setValidityFunction · 0.70

Calls 1

isObjectEmptyFunction · 0.70

Tested by

no test coverage detected