aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/core/Widget.kt11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt
index c9c97187..ac3ba143 100644
--- a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt
@@ -38,7 +38,6 @@ import pl.treksoft.kvision.utils.snAttrs
import pl.treksoft.kvision.utils.snClasses
import pl.treksoft.kvision.utils.snOpt
import pl.treksoft.kvision.utils.snStyle
-import kotlin.Unit
/**
* Base widget class. The parent of all component classes.
@@ -156,7 +155,7 @@ open class Widget(classes: Set<String> = setOf()) : StyledComponent() {
attrs = snAttrs(getSnAttrsInternal())
style = snStyle(getSnStyleInternal())
`class` = snClasses(getSnClassInternal())
- on = getSnOnInternal()
+ on = getSnOn()
hook = getSnHooksInternal()
}
}
@@ -177,14 +176,6 @@ open class Widget(classes: Set<String> = setOf()) : StyledComponent() {
}()
}
- private fun getSnOnInternal(): com.github.snabbdom.On? {
- return snOnCache ?: {
- val s = getSnOn()
- snOnCache = s
- s
- }()
- }
-
private fun getSnHooksInternal(): com.github.snabbdom.Hooks? {
return snHooksCache ?: {
val s = getSnHooks()