diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-02-27 09:33:07 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-02-27 09:33:07 +0100 |
commit | 57da0d71e37adebb72d90292f850c06d4d969547 (patch) | |
tree | 569247ced5ed619a108ebe145f7ec3a0bae00555 /src/main/kotlin/pl/treksoft/kvision/KVManager.kt | |
parent | 130e04183b2d9898d18fdc14b9048e541bbad583 (diff) | |
download | kvision-57da0d71e37adebb72d90292f850c06d4d969547.tar.gz kvision-57da0d71e37adebb72d90292f850c06d4d969547.tar.bz2 kvision-57da0d71e37adebb72d90292f850c06d4d969547.zip |
Various fixes for window component.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/KVManager.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/KVManager.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt index 4ab7c1d0..ab4f7e13 100644 --- a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt +++ b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt @@ -143,7 +143,7 @@ internal object KVManager { @Suppress("UnsafeCastFromDynamic") internal fun clearResizeEvent(component: Component) { - if (component.getElement().asDynamic().__resizeTrigger__.contentDocument != null) { + if (component.getElement()?.asDynamic()?.__resizeTrigger__?.contentDocument != null) { component.getElement()?.let { elementResizeEvent.unbind(it) } |