diff --git a/src/jsMain/kotlin/dom-js.kt b/src/jsMain/kotlin/dom-js.kt index 00d4b9a8..2f60ec69 100644 --- a/src/jsMain/kotlin/dom-js.kt +++ b/src/jsMain/kotlin/dom-js.kt @@ -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