MCPcopy Create free account
hub / github.com/prototypejs/prototype / purgeElement

Function purgeElement

src/prototype/dom/dom.js:1180–1188  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

1178
1179 // Performs cleanup on a single element before it is removed from the page.
1180 function purgeElement(element) {
1181 var uid = getUniqueElementID(element);
1182 if (uid) {
1183 Element.stopObserving(element);
1184 if (!HAS_UNIQUE_ID_PROPERTY)
1185 element._prototypeUID = UNDEFINED;
1186 delete Element.Storage[uid];
1187 }
1188 }
1189
1190 function purgeCollection(elements) {
1191 var i = elements.length;

Callers 3

updateFunction · 0.85
purgeCollectionFunction · 0.85
purgeFunction · 0.85

Calls 1

getUniqueElementIDFunction · 0.70

Tested by

no test coverage detected