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

Function jqLiteRemoveData

test/angular/1.3/angular.js:2590–2609  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

2588}
2589
2590function jqLiteRemoveData(element, name) {
2591 var expandoId = element.ng339;
2592 var expandoStore = expandoId && jqCache[expandoId];
2593
2594 if (expandoStore) {
2595 if (name) {
2596 delete expandoStore.data[name];
2597 return;
2598 }
2599
2600 if (expandoStore.handle) {
2601 if (expandoStore.events.$destroy) {
2602 expandoStore.handle({}, '$destroy');
2603 }
2604 jqLiteOff(element);
2605 }
2606 delete jqCache[expandoId];
2607 element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
2608 }
2609}
2610
2611
2612function jqLiteExpandoStore(element, createIfNecessary) {

Callers 1

jqLiteDealocFunction · 0.70

Calls 1

jqLiteOffFunction · 0.70

Tested by

no test coverage detected