MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / deInitNode

Function deInitNode

src/test/resources/libraries/htmx/htmx-2.0.0/src/htmx.js:1593–1607  ·  view source on GitHub ↗

* @param {Node} element

(element)

Source from the content-addressed store, hash-verified

1591 * @param {Node} element
1592 */
1593 function deInitNode(element) {
1594 const internalData = getInternalData(element)
1595 if (internalData.timeout) {
1596 clearTimeout(internalData.timeout)
1597 }
1598 if (internalData.listenerInfos) {
1599 forEach(internalData.listenerInfos, function(info) {
1600 if (info.on) {
1601 removeEventListenerImpl(info.on, info.trigger, info.listener)
1602 }
1603 })
1604 }
1605 deInitOnHandlers(element)
1606 forEach(Object.keys(internalData), function(key) { delete internalData[key] })
1607 }
1608
1609 /**
1610 * @param {Node} element

Callers 2

cleanUpElementFunction · 0.70
initNodeFunction · 0.70

Calls 6

getInternalDataFunction · 0.70
forEachFunction · 0.70
removeEventListenerImplFunction · 0.70
deInitOnHandlersFunction · 0.70
clearTimeoutFunction · 0.50
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…