aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/Main.kt
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-09-09 22:17:34 +0200
committerRobert Jaros <rjaros@finn.pl>2017-09-09 22:17:34 +0200
commit037c9c22bfe23064b2e110225261a26247649967 (patch)
tree53ab791f98500a9921372c027cef6db02c48aff5 /src/main/kotlin/pl/treksoft/kvision/Main.kt
parent85b48891c61c604c952c8739b50bdae2998c44a7 (diff)
downloadkvision-037c9c22bfe23064b2e110225261a26247649967.tar.gz
kvision-037c9c22bfe23064b2e110225261a26247649967.tar.bz2
kvision-037c9c22bfe23064b2e110225261a26247649967.zip
Integrate jQuery mappings
Globally disabled Data API Added support for dropdown events
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/Main.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/Main.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/Main.kt b/src/main/kotlin/pl/treksoft/kvision/Main.kt
index 385d23e8..e4816888 100644
--- a/src/main/kotlin/pl/treksoft/kvision/Main.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/Main.kt
@@ -1,5 +1,6 @@
package pl.treksoft.kvision
+import pl.treksoft.kvision.core.KVManager
import kotlin.browser.document
fun main(args: Array<String>) {
@@ -10,6 +11,7 @@ fun main(args: Array<String>) {
hot.dispose { data ->
data.appState = application?.dispose()
+ KVManager.shutdown()
application = null
}
@@ -19,6 +21,7 @@ fun main(args: Array<String>) {
if (document.body != null) {
application = start(state)
} else {
+ KVManager.init()
application = null
document.addEventListener("DOMContentLoaded", { application = start(state) })
}