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.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt
index b28943dd..72c5699c 100644
--- a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt
@@ -326,10 +326,12 @@ open class Widget(classes: Set<String> = setOf()) : StyledComponent(), Component
vnode = v
afterInsertInternal(v)
afterInsert(v)
+ afterInsertHook?.invoke(v)
}
destroy = {
afterDestroyInternal()
afterDestroy()
+ afterDestroyHook?.invoke()
vnode = null
vnode
}
@@ -806,7 +808,6 @@ open class Widget(classes: Set<String> = setOf()) : StyledComponent(), Component
content = it.content?.let { translate(it) }).toJs()
)
}
- this.afterInsertHook?.invoke(node)
}
/**
@@ -828,7 +829,6 @@ open class Widget(classes: Set<String> = setOf()) : StyledComponent(), Component
val popoverFun = getElementJQueryD()?.popover
if (popoverFun != undefined) getElementJQueryD()?.popover("dispose")
}
- this.afterDestroyHook?.invoke()
}
/**