From c40b93a416acd7e5f72ce0025668f1a9d8267fd4 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 17 Sep 2017 23:34:00 +0200 Subject: Refactoring event handlers --- src/main/kotlin/pl/treksoft/kvision/Showcase.kt | 15 ++++++++++----- .../pl/treksoft/kvision/dropdown/DropDown.kt | 22 +++++++++++----------- src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt | 16 ++++++++-------- .../kotlin/pl/treksoft/kvision/snabbdom/Types.kt | 22 +++++++++++----------- 4 files changed, 40 insertions(+), 35 deletions(-) (limited to 'src') diff --git a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt index 1e93d95a..3bccdfb1 100644 --- a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt +++ b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt @@ -36,10 +36,13 @@ class Showcase : ApplicationBase() { val dd = DropDown("Dropdown", listOf("abc" to "#!/x", "def" to "#!/y"), "flag") root.add(dd) - dd.setEventListener