Skip to content

Commit

Permalink
Add missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
e5l committed Jan 22, 2024
1 parent 46285b5 commit ee51bf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jsMain/kotlin/dom-js.kt
Expand Up @@ -4,6 +4,7 @@ import kotlinx.html.*
import kotlinx.html.consumers.*
import kotlinx.html.org.w3c.dom.events.Event
import org.w3c.dom.*
import kotlin.reflect.KProperty

private inline fun HTMLElement.setEvent(name: String, noinline callback : (Event) -> Unit) : Unit {
asDynamic()[name] = callback
Expand Down

0 comments on commit ee51bf0

Please sign in to comment.