From 77bf290155cbfa6d389c4937bf2a5a34dd5b33bd Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 15 Nov 2019 09:07:05 +0100 Subject: Fix an issue with high CPU utilization in IntelliJ by introducing new onEvent extension function and changing the names of some style methods --- .../src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft') diff --git a/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt b/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt index 4d90d18b..0c1df008 100644 --- a/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt +++ b/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt @@ -192,7 +192,9 @@ open class SelectRemote( return this } + @Deprecated("Use onEvent extension function instead.", ReplaceWith("onEvent(block)", "pl.treksoft.kvision.core.onEvent")) override fun setEventListener(block: SnOn.() -> Unit): Widget { + @Suppress("DEPRECATION") input.setEventListener(block) return this } -- cgit