From db611775f3fbf14c3860973795768a722d501d48 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 28 Jan 2018 14:01:59 +0100 Subject: Style fixes --- src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt | 1 - src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/kotlin/pl') diff --git a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt index 80329d92..587b89cd 100644 --- a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt +++ b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt @@ -14,7 +14,6 @@ import pl.treksoft.kvision.panel.SimplePanel import pl.treksoft.kvision.snabbdom.StringBoolPair import pl.treksoft.kvision.snabbdom.StringPair import pl.treksoft.kvision.snabbdom.obj -import kotlin.browser.window enum class DD(val type: String) { HEADER("DD#HEADER"), diff --git a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt index 80654f93..f38429e3 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt @@ -131,7 +131,7 @@ open class SelectInput( } } else { val vs = v as String - if (KVNULL == vs || vs.length == 0) { + if (KVNULL == vs || vs.isEmpty()) { null } else { vs -- cgit