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

Function removeIfEmptyData

lib/test/angular/1.8.0/angular.js:3352–3363  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

3350}
3351
3352function removeIfEmptyData(element) {
3353 var expandoId = element.ng339;
3354 var expandoStore = expandoId && jqCache[expandoId];
3355
3356 var events = expandoStore && expandoStore.events;
3357 var data = expandoStore && expandoStore.data;
3358
3359 if ((!data || isEmptyObject(data)) && (!events || isEmptyObject(events))) {
3360 delete jqCache[expandoId];
3361 element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
3362 }
3363}
3364
3365function jqLiteOff(element, type, fn, unsupported) {
3366 if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument');

Callers 2

jqLiteOffFunction · 0.70
jqLiteRemoveDataFunction · 0.70

Calls 1

isEmptyObjectFunction · 0.70

Tested by

no test coverage detected