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

Function unsetAndCleanup

lib/test/angular/1.8.0/angular.js:25206–25213  ·  view source on GitHub ↗
(ctrl, name, value, controller)

Source from the content-addressed store, hash-verified

25204 }
25205
25206 function unsetAndCleanup(ctrl, name, value, controller) {
25207 if (ctrl[name]) {
25208 unset(ctrl[name], value, controller);
25209 }
25210 if (isObjectEmpty(ctrl[name])) {
25211 ctrl[name] = undefined;
25212 }
25213 }
25214
25215 function cachedToggleClass(ctrl, className, switchValue) {
25216 if (switchValue && !ctrl.$$classCache[className]) {

Callers 1

addSetValidityMethodFunction · 0.70

Calls 1

isObjectEmptyFunction · 0.70

Tested by

no test coverage detected