MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / jqLiteRemoveData

Function jqLiteRemoveData

test/fixtures/foo.js:2425–2442  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

2423}
2424
2425function jqLiteRemoveData(element, name) {
2426 var expandoId = element.ng339,
2427 expandoStore = jqCache[expandoId];
2428
2429 if (expandoStore) {
2430 if (name) {
2431 delete jqCache[expandoId].data[name];
2432 return;
2433 }
2434
2435 if (expandoStore.handle) {
2436 expandoStore.events.$destroy && expandoStore.handle({}, '$destroy');
2437 jqLiteOff(element);
2438 }
2439 delete jqCache[expandoId];
2440 element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
2441 }
2442}
2443
2444function jqLiteExpandoStore(element, key, value) {
2445 var expandoId = element.ng339,

Callers 1

jqLiteDealocFunction · 0.85

Calls 1

jqLiteOffFunction · 0.85

Tested by

no test coverage detected