aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-01-28 14:01:59 +0100
committerRobert Jaros <rjaros@finn.pl>2018-01-28 14:01:59 +0100
commitdb611775f3fbf14c3860973795768a722d501d48 (patch)
tree14e9f03ce64bdfc230dbccc02b27025af1c30723
parent7a9f04ad13d8b9c961c6c1e3c3642fd10c1678bc (diff)
downloadkvision-db611775f3fbf14c3860973795768a722d501d48.tar.gz
kvision-db611775f3fbf14c3860973795768a722d501d48.tar.bz2
kvision-db611775f3fbf14c3860973795768a722d501d48.zip
Style fixes
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt1
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/select/SelectInput.kt2
2 files changed, 1 insertions, 2 deletions
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