MCPcopy Create free account
hub / github.com/angular-ui/ui-router / unsetAndCleanup

Function unsetAndCleanup

test/angular/1.3/angular.js:24038–24045  ·  view source on GitHub ↗
(name, value, controller)

Source from the content-addressed store, hash-verified

24036 }
24037
24038 function unsetAndCleanup(name, value, controller) {
24039 if (ctrl[name]) {
24040 unset(ctrl[name], value, controller);
24041 }
24042 if (isObjectEmpty(ctrl[name])) {
24043 ctrl[name] = undefined;
24044 }
24045 }
24046
24047 function cachedToggleClass(className, switchValue) {
24048 if (switchValue && !classCache[className]) {

Callers 1

setValidityFunction · 0.70

Calls 1

isObjectEmptyFunction · 0.70

Tested by

no test coverage detected