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

Function jqLiteRemoveData

lib/test/angular/1.5.0/angular.js:2925–2944  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

2923}
2924
2925function jqLiteRemoveData(element, name) {
2926 var expandoId = element.ng339;
2927 var expandoStore = expandoId && jqCache[expandoId];
2928
2929 if (expandoStore) {
2930 if (name) {
2931 delete expandoStore.data[name];
2932 return;
2933 }
2934
2935 if (expandoStore.handle) {
2936 if (expandoStore.events.$destroy) {
2937 expandoStore.handle({}, '$destroy');
2938 }
2939 jqLiteOff(element);
2940 }
2941 delete jqCache[expandoId];
2942 element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
2943 }
2944}
2945
2946
2947function jqLiteExpandoStore(element, createIfNecessary) {

Callers 2

jqLiteCleanDataFunction · 0.70
jqLiteDealocFunction · 0.70

Calls 1

jqLiteOffFunction · 0.70

Tested by

no test coverage detected