aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt2
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/panel/TabPanelSpec.kt2
3 files changed, 2 insertions, 4 deletions
diff --git a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt
index a179b9ec..47fbe538 100644
--- a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt
+++ b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt
@@ -190,7 +190,6 @@ open class Tabulator<T : Any>(
}
}
}
- counter++
}
override fun getSnClass(): List<StringBoolPair> {
@@ -535,7 +534,6 @@ open class Tabulator<T : Any>(
}
companion object {
- internal var counter = 0
/**
* DSL builder extension function.
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>()
}
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/panel/TabPanelSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/panel/TabPanelSpec.kt
index 35620818..9335562f 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/panel/TabPanelSpec.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/panel/TabPanelSpec.kt
@@ -108,7 +108,7 @@ class TabPanelSpec : DomSpec {
jQuery("#test a")[0]?.click()
val element = document.getElementById("test")
assertEqualsHtml(
- "<div><ul class=\"nav nav-tabs\"><li role=\"presentation\" class=\"\"><a href=\"#\">DEF</a></li><li role=\"presentation\"><a href=\"#\">GHI</a></li></ul><div><span>def</span></div></div>",
+ "<div><ul class=\"nav nav-tabs\"><li role=\"presentation\"><a href=\"#\">DEF</a></li><li role=\"presentation\"><a href=\"#\">GHI</a></li></ul><div><span>def</span></div></div>",
element?.innerHTML,
"Should select correct tab by clicking"
)