aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-26 14:00:43 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-26 14:00:43 +0100
commit238beca91b03634d56db656e8aa895153bdc1a33 (patch)
tree01651064438939d2467b104b25835ecf5245cd6d /src/main
parent5f0f0400e28365c5521b6c0b038fdd32101d8a1f (diff)
downloadkvision-238beca91b03634d56db656e8aa895153bdc1a33.tar.gz
kvision-238beca91b03634d56db656e8aa895153bdc1a33.tar.bz2
kvision-238beca91b03634d56db656e8aa895153bdc1a33.zip
Unit tests compatibility with Firefox.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/KVManager.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
index d3001b1d..4ab7c1d0 100644
--- a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt
@@ -143,8 +143,10 @@ internal object KVManager {
@Suppress("UnsafeCastFromDynamic")
internal fun clearResizeEvent(component: Component) {
- component.getElement()?.let {
- elementResizeEvent.unbind(it)
+ if (component.getElement().asDynamic().__resizeTrigger__.contentDocument != null) {
+ component.getElement()?.let {
+ elementResizeEvent.unbind(it)
+ }
}
}
}