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

Function jqLiteRemoveData

test/angular/1.4/angular.js:2912–2931  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

2910}
2911
2912function jqLiteRemoveData(element, name) {
2913 var expandoId = element.ng339;
2914 var expandoStore = expandoId && jqCache[expandoId];
2915
2916 if (expandoStore) {
2917 if (name) {
2918 delete expandoStore.data[name];
2919 return;
2920 }
2921
2922 if (expandoStore.handle) {
2923 if (expandoStore.events.$destroy) {
2924 expandoStore.handle({}, '$destroy');
2925 }
2926 jqLiteOff(element);
2927 }
2928 delete jqCache[expandoId];
2929 element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it
2930 }
2931}
2932
2933
2934function jqLiteExpandoStore(element, createIfNecessary) {

Callers 1

jqLiteDealocFunction · 0.70

Calls 1

jqLiteOffFunction · 0.70

Tested by

no test coverage detected