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/panel/TabPanel.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/kotlin/pl/treksoft/kvision/panel') diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt b/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt index ae8360b5..f620f2b0 100644 --- a/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt +++ b/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt @@ -160,6 +160,7 @@ open class TabPanel( click = { e -> val actIndex = this@TabPanel.content.children.indexOf(childrenMap[currentIndex]) e.asDynamic().data = actIndex + @Suppress("UnsafeCastFromDynamic") if (this@TabPanel.dispatchEvent( "tabClosing", obj { detail = e; cancelable = true }) != false -- cgit