Remove vestigial ChildObserver class from DOM lens

This commit is contained in:
Talia 2024-02-06 11:18:25 +01:00
parent 71d7c0ff4f
commit 9b738bd589
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

@ -1,17 +1,3 @@
class ChildObserver extends MutationObserver {
constructor() {
super(mutations => {
for (const mutation of mutations) {
mutation.target.dispatchEvent(new CustomEvent("change", {detail: mutation}))
}
})
}
observe(element) {
MutationObserver.prototype.observe.call(this, element, { childList: true })
}
}
export const lense = (methods, extra) => { export const lense = (methods, extra) => {
if (extra) return lense(extra)(methods) if (extra) return lense(extra)(methods)