MCPcopy Create free account
hub / github.com/angular-ui/ui-router / jqLiteRemoveData

Function jqLiteRemoveData

test/angular/1.5/angular.js:3074–3093  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

3072}
3073
3074function jqLiteRemoveData(element, name) {
3075 var expandoId = element.ng339;
3076 var expandoStore = expandoId && jqCache[expandoId];
3077
3078 if (expandoStore) {
3079 if (name) {
3080 delete expandoStore.data[name];
3081 return;
3082 }
3083
3084 if (expandoStore.handle) {
3085 if (expandoStore.events.$destroy) {
3086 expandoStore.handle({}, '$destroy');
3087 }
3088 jqLiteOff(element);
3089 }
3090 delete jqCache[expandoId];
3091 element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
3092 }
3093}
3094
3095
3096function jqLiteExpandoStore(element, createIfNecessary) {

Callers 2

jqLiteCleanDataFunction · 0.70
jqLiteDealocFunction · 0.70

Calls 1

jqLiteOffFunction · 0.70

Tested by

no test coverage detected