From 04e33bba30b821dc6634cd049798eb944b03717f Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 9 Sep 2017 22:55:14 +0200 Subject: Fix warnings --- src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/dropdown') diff --git a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt index d33b53d9..57890a81 100644 --- a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt +++ b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt @@ -65,19 +65,19 @@ open class DropDown(text: String, elements: List, icon: String? = nu } override fun afterInsert(node: VNode) { - this.getElementJQuery()?.on("show.bs.dropdown", { e, _ -> + this.getElementJQuery()?.on("show.bs.dropdown", { _, _ -> val event = CustomEvent("showBsDropdown", obj({ detail = button })) this.getElement()?.dispatchEvent(event) as Any }) - this.getElementJQuery()?.on("shown.bs.dropdown", { e, _ -> + this.getElementJQuery()?.on("shown.bs.dropdown", { _, _ -> val event = CustomEvent("shownBsDropdown", obj({ detail = button })) this.getElement()?.dispatchEvent(event) as Any }) - this.getElementJQuery()?.on("hide.bs.dropdown", { e, _ -> + this.getElementJQuery()?.on("hide.bs.dropdown", { _, _ -> val event = CustomEvent("hideBsDropdown", obj({ detail = button })) this.getElement()?.dispatchEvent(event) as Any }) - this.getElementJQuery()?.on("hidden.bs.dropdown", { e, _ -> + this.getElementJQuery()?.on("hidden.bs.dropdown", { _, _ -> val event = CustomEvent("hiddenBsDropdown", obj({ detail = button })) this.getElement()?.dispatchEvent(event) as Any }) -- cgit