aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/dropdown
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/dropdown')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt
index ade2937b..3f6ca828 100644
--- a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt
@@ -139,17 +139,17 @@ open class DropDown(text: String, elements: List<StringPair>? = null, icon: Stri
override fun afterInsert(node: VNode) {
this.getElementJQuery()?.on("show.bs.dropdown", { e, _ ->
if (!list.visible) list.visible = true
- this.dispatchEvent("showBsDropdown", obj({ detail = e }))
+ this.dispatchEvent("showBsDropdown", obj { detail = e })
})
this.getElementJQuery()?.on("shown.bs.dropdown", { e, _ ->
- this.dispatchEvent("shownBsDropdown", obj({ detail = e }))
+ this.dispatchEvent("shownBsDropdown", obj { detail = e })
})
this.getElementJQuery()?.on("hide.bs.dropdown", { e, _ ->
- this.dispatchEvent("hideBsDropdown", obj({ detail = e }))
+ this.dispatchEvent("hideBsDropdown", obj { detail = e })
})
this.getElementJQuery()?.on("hidden.bs.dropdown", { e, _ ->
if (list.visible) list.visible = false
- this.dispatchEvent("hiddenBsDropdown", obj({ detail = e }))
+ this.dispatchEvent("hiddenBsDropdown", obj { detail = e })
})
}