Remove event name cleanup in skooma.js
This commit is contained in:
parent
2445617e8b
commit
44b6343de6
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ const setAttribute = (element, attribute, value, cleanupSignal) => {
|
|||
if (isReactive(value))
|
||||
setReactiveAttribute(element, attribute, value)
|
||||
else if (typeof value === "function")
|
||||
element.addEventListener(attribute.replace(/^on[A-Z]/, x => x.charAt(x.length-1).toLowerCase()), value, {signal: cleanupSignal})
|
||||
element.addEventListener(attribute, value, {signal: cleanupSignal})
|
||||
else if (special) {
|
||||
special.set.call(element, value)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue