MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / removeIfEmptyData

Function removeIfEmptyData

lib/test/angular/1.7.0/angular.js:3241–3252  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

3239}
3240
3241function removeIfEmptyData(element) {
3242 var expandoId = element.ng339;
3243 var expandoStore = expandoId && jqCache[expandoId];
3244
3245 var events = expandoStore && expandoStore.events;
3246 var data = expandoStore && expandoStore.data;
3247
3248 if ((!data || isEmptyObject(data)) && (!events || isEmptyObject(events))) {
3249 delete jqCache[expandoId];
3250 element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
3251 }
3252}
3253
3254function jqLiteOff(element, type, fn, unsupported) {
3255 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