MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / jqLiteRemoveData

Function jqLiteRemoveData

web/static/bower_components/angular/angular.js:2841–2860  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

2839}
2840
2841function jqLiteRemoveData(element, name) {
2842 var expandoId = element.ng339;
2843 var expandoStore = expandoId && jqCache[expandoId];
2844
2845 if (expandoStore) {
2846 if (name) {
2847 delete expandoStore.data[name];
2848 return;
2849 }
2850
2851 if (expandoStore.handle) {
2852 if (expandoStore.events.$destroy) {
2853 expandoStore.handle({}, '$destroy');
2854 }
2855 jqLiteOff(element);
2856 }
2857 delete jqCache[expandoId];
2858 element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
2859 }
2860}
2861
2862
2863function jqLiteExpandoStore(element, createIfNecessary) {

Callers 1

jqLiteDealocFunction · 0.85

Calls 1

jqLiteOffFunction · 0.85

Tested by

no test coverage detected