mirror of
https://github.com/bigskysoftware/htmx.git
synced 2026-03-03 12:29:36 +00:00
properly clean up observer
This commit is contained in:
parent
80aacdbbe9
commit
f0c2247f63
@ -946,6 +946,7 @@ var htmx = (() => {
|
||||
for (let spec of elt._htmx.triggerSpecs || []) {
|
||||
if (spec.interval) clearInterval(spec.interval);
|
||||
if (spec.timeout) clearTimeout(spec.timeout);
|
||||
Missing: spec.observer?.disconnect()
|
||||
}
|
||||
for (let listenerInfo of elt._htmx.listeners || []) {
|
||||
listenerInfo.fromElt.removeEventListener(listenerInfo.eventName, listenerInfo.handler);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user