aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/window
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-11-15 09:07:05 +0100
committerRobert Jaros <rjaros@finn.pl>2019-11-15 09:07:05 +0100
commit77bf290155cbfa6d389c4937bf2a5a34dd5b33bd (patch)
treee558ab18360da4d1685dc204ae661c4357842e41 /kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/window
parent822ee9a8d0efd5bcacacd7dc5c1c35b549ed9c34 (diff)
downloadkvision-77bf290155cbfa6d389c4937bf2a5a34dd5b33bd.tar.gz
kvision-77bf290155cbfa6d389c4937bf2a5a34dd5b33bd.tar.bz2
kvision-77bf290155cbfa6d389c4937bf2a5a34dd5b33bd.zip
Fix an issue with high CPU utilization in IntelliJ by introducing new onEvent extension function and changing the names of some style methods
Diffstat (limited to 'kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/window')
-rw-r--r--kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/window/Window.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/window/Window.kt b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/window/Window.kt
index 861127fa..b34de18d 100644
--- a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/window/Window.kt
+++ b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/window/Window.kt
@@ -189,7 +189,7 @@ open class Window(
captionTag.add(windowIcon)
header.add(iconsContainer)
minimizeIcon.visible = minimizeButton
- minimizeIcon.setEventListener {
+ minimizeIcon.setEventListener<MinimizeIcon> {
click = { _ ->
@Suppress("UnsafeCastFromDynamic")
if (this@Window.dispatchEvent("minimizeWindow", obj {}) != false) {
@@ -202,7 +202,7 @@ open class Window(
}
iconsContainer.add(minimizeIcon)
maximizeIcon.visible = maximizeButton
- maximizeIcon.setEventListener {
+ maximizeIcon.setEventListener<MaximizeIcon> {
click = { _ ->
@Suppress("UnsafeCastFromDynamic")
if (this@Window.dispatchEvent("maximizeWindow", obj {}) != false) {
@@ -215,7 +215,7 @@ open class Window(
}
iconsContainer.add(maximizeIcon)
closeIcon.visible = closeButton
- closeIcon.setEventListener {
+ closeIcon.setEventListener<CloseIcon> {
click = { _ ->
@Suppress("UnsafeCastFromDynamic")
if (this@Window.dispatchEvent("closeWindow", obj {}) != false) {