aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/window
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/window')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/window/Window.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/window/Window.kt b/src/main/kotlin/pl/treksoft/kvision/window/Window.kt
index bdfb2c0f..ee20dc51 100644
--- a/src/main/kotlin/pl/treksoft/kvision/window/Window.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/window/Window.kt
@@ -105,11 +105,11 @@ open class Window(
/**
* Determines if the window is resizable.
*/
- var isResizable by refreshOnUpdate(isResizable, { checkIsResizable() })
+ var isResizable by refreshOnUpdate(isResizable) { checkIsResizable() }
/**
* Determines if the window is draggable.
*/
- var isDraggable by refreshOnUpdate(isDraggable, { checkIsDraggable(); checkHeaderVisibility() })
+ var isDraggable by refreshOnUpdate(isDraggable) { checkIsDraggable(); checkHeaderVisibility() }
/**
* Determines if Close button is visible.
*/
@@ -201,7 +201,7 @@ open class Window(
}
kotlin.browser.window.addEventListener("mousemove", moveCallback)
var upCallback: ((Event) -> Unit)? = null
- upCallback = { _ ->
+ upCallback = {
isDrag = false
kotlin.browser.window.removeEventListener("mousemove", moveCallback)
kotlin.browser.window.removeEventListener("mouseup", upCallback)