MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / jqLiteRemoveData

Function jqLiteRemoveData

code/songhop/www/lib/angular/angular.js:2545–2564  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

2543}
2544
2545function jqLiteRemoveData(element, name) {
2546 var expandoId = element.ng339;
2547 var expandoStore = expandoId && jqCache[expandoId];
2548
2549 if (expandoStore) {
2550 if (name) {
2551 delete expandoStore.data[name];
2552 return;
2553 }
2554
2555 if (expandoStore.handle) {
2556 if (expandoStore.events.$destroy) {
2557 expandoStore.handle({}, '$destroy');
2558 }
2559 jqLiteOff(element);
2560 }
2561 delete jqCache[expandoId];
2562 element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
2563 }
2564}
2565
2566
2567function jqLiteExpandoStore(element, createIfNecessary) {

Callers 1

jqLiteDealocFunction · 0.70

Calls 1

jqLiteOffFunction · 0.70

Tested by

no test coverage detected