diff options
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/core/Widget.kt | 4 |
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() } /** |