MCPcopy
hub / github.com/angular-ui/ui-router / unsetAndCleanup

Function unsetAndCleanup

test/angular/1.7/angular.js:25141–25148  ·  view source on GitHub ↗
(ctrl, name, value, controller)

Source from the content-addressed store, hash-verified

25139 }
25140
25141 function unsetAndCleanup(ctrl, name, value, controller) {
25142 if (ctrl[name]) {
25143 unset(ctrl[name], value, controller);
25144 }
25145 if (isObjectEmpty(ctrl[name])) {
25146 ctrl[name] = undefined;
25147 }
25148 }
25149
25150 function cachedToggleClass(ctrl, className, switchValue) {
25151 if (switchValue && !ctrl.$$classCache[className]) {

Callers 1

addSetValidityMethodFunction · 0.70

Calls 1

isObjectEmptyFunction · 0.70

Tested by

no test coverage detected