From 426da03b5a4e2d715c086e1bfd92b34358ae17ee Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 13 Jul 2019 01:22:56 +0200 Subject: Style fixes. Suppress style warnings. --- .../src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kvision-modules/kvision-datetime/src/main/kotlin/pl') diff --git a/kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt b/kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt index 8de8d088..a375ef35 100644 --- a/kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt +++ b/kvision-modules/kvision-datetime/src/main/kotlin/pl/treksoft/kvision/form/time/DateTimeInput.kt @@ -260,12 +260,15 @@ open class DateTimeInput( private fun initEventHandlers() { this.getElementJQuery()?.on("changeDate") { e, _ -> + @Suppress("UnsafeCastFromDynamic") this.dispatchEvent("change", obj { detail = e }) } this.getElementJQuery()?.on("show") { e, _ -> + @Suppress("UnsafeCastFromDynamic") this.dispatchEvent("showBsDateTime", obj { detail = e }) } this.getElementJQuery()?.on("hide") { e, _ -> + @Suppress("UnsafeCastFromDynamic") this.dispatchEvent("hideBsDateTime", obj { detail = e }) } } -- cgit