diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-09-09 22:55:14 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-09-09 22:55:14 +0200 |
commit | 04e33bba30b821dc6634cd049798eb944b03717f (patch) | |
tree | dc359e2daa25b3aa066f069c6a0a13898e40348a /src/main/kotlin/pl | |
parent | 037c9c22bfe23064b2e110225261a26247649967 (diff) | |
download | kvision-04e33bba30b821dc6634cd049798eb944b03717f.tar.gz kvision-04e33bba30b821dc6634cd049798eb944b03717f.tar.bz2 kvision-04e33bba30b821dc6634cd049798eb944b03717f.zip |
Fix warnings
Diffstat (limited to 'src/main/kotlin/pl')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt | 8 |
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 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<StringPair>, 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 }) |