diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-02-26 14:00:43 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-02-26 14:00:43 +0100 |
commit | 238beca91b03634d56db656e8aa895153bdc1a33 (patch) | |
tree | 01651064438939d2467b104b25835ecf5245cd6d /src/main/kotlin | |
parent | 5f0f0400e28365c5521b6c0b038fdd32101d8a1f (diff) | |
download | kvision-238beca91b03634d56db656e8aa895153bdc1a33.tar.gz kvision-238beca91b03634d56db656e8aa895153bdc1a33.tar.bz2 kvision-238beca91b03634d56db656e8aa895153bdc1a33.zip |
Unit tests compatibility with Firefox.
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/KVManager.kt | 6 |
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) + } } } } |