aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-07-09 21:23:56 +0200
committerRobert Jaros <rjaros@finn.pl>2019-07-09 21:23:56 +0200
commit5dc1fb5b0e4ceff6be378aaf88b71f3b577cae0d (patch)
treed3069086ccc55e4c87f3ebea8693d8c338fc6f3a /src/main/kotlin/pl/treksoft/kvision
parent5f00087fac48d77c2e8ca729eec42d795cc648b5 (diff)
downloadkvision-5dc1fb5b0e4ceff6be378aaf88b71f3b577cae0d.tar.gz
kvision-5dc1fb5b0e4ceff6be378aaf88b71f3b577cae0d.tar.bz2
kvision-5dc1fb5b0e4ceff6be378aaf88b71f3b577cae0d.zip
Fix tests.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt b/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt
index db40c072..583dd74c 100644
--- a/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt
@@ -53,7 +53,7 @@ inline fun obj(init: dynamic.() -> Unit): dynamic {
@Suppress("UNUSED_VARIABLE")
inline fun <reified T> Any?.createInstance(vararg args: dynamic): T {
val jsClass = this
- val argsArray = (listOf<dynamic>() + args).toTypedArray()
+ val argsArray = (listOf<dynamic>(null) + args).toTypedArray()
return js("new (Function.prototype.bind.apply(jsClass, argsArray))").unsafeCast<T>()
}