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

Function unsetAndCleanup

test/angular/1.6/angular.js:24253–24260  ·  view source on GitHub ↗
(ctrl, name, value, controller)

Source from the content-addressed store, hash-verified

24251 }
24252
24253 function unsetAndCleanup(ctrl, name, value, controller) {
24254 if (ctrl[name]) {
24255 unset(ctrl[name], value, controller);
24256 }
24257 if (isObjectEmpty(ctrl[name])) {
24258 ctrl[name] = undefined;
24259 }
24260 }
24261
24262 function cachedToggleClass(ctrl, className, switchValue) {
24263 if (switchValue && !ctrl.$$classCache[className]) {

Callers 1

addSetValidityMethodFunction · 0.70

Calls 1

isObjectEmptyFunction · 0.70

Tested by

no test coverage detected