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

Function unsetAndCleanup

lib/test/angular/1.7.0/angular.js:24392–24399  ·  view source on GitHub ↗
(ctrl, name, value, controller)

Source from the content-addressed store, hash-verified

24390 }
24391
24392 function unsetAndCleanup(ctrl, name, value, controller) {
24393 if (ctrl[name]) {
24394 unset(ctrl[name], value, controller);
24395 }
24396 if (isObjectEmpty(ctrl[name])) {
24397 ctrl[name] = undefined;
24398 }
24399 }
24400
24401 function cachedToggleClass(ctrl, className, switchValue) {
24402 if (switchValue && !ctrl.$$classCache[className]) {

Callers 1

addSetValidityMethodFunction · 0.70

Calls 1

isObjectEmptyFunction · 0.70

Tested by

no test coverage detected