Skip to content
This repository was archived by the owner on Aug 10, 2024. It is now read-only.

Commit 7079c98

Browse files
committed
animation event fix
1 parent 6cb20ea commit 7079c98

File tree

1 file changed

+3
-3
lines changed
  • src/main/kotlin/com/github/sanity/kweb/dom/element/events

1 file changed

+3
-3
lines changed

src/main/kotlin/com/github/sanity/kweb/dom/element/events/ONReceiver.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ open class ONReceiver(private val parent: Element) : Element(parent) {
156156

157157
// Animation Events
158158
/** The event occurs when a CSS animation has completed **/
159-
fun animationend(callback: (AnimationEvent) -> Unit) = event("animationend", callback = callback)
159+
fun animationend(callback: (AnimationEvent) -> Unit) = event("animationend", eventType = AnimationEvent::class, callback = callback)
160160
/** The event occurs when a CSS animation is repeated **/
161-
fun animationiteration(callback: (AnimationEvent) -> Unit) = event("animationiteration", callback = callback)
161+
fun animationiteration(callback: (AnimationEvent) -> Unit) = event("animationiteration", eventType = AnimationEvent::class, callback = callback)
162162
/** The event occurs when a CSS animation has started **/
163-
fun animationstart(callback: (AnimationEvent) -> Unit) = event("animationstart", callback = callback)
163+
fun animationstart(callback: (AnimationEvent) -> Unit) = event("animationstart", eventType = AnimationEvent::class, callback = callback)
164164

165165
// Transition Events
166166
/** The event occurs when a CSS transition has completed **/

0 commit comments

Comments
 (0)