aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-tabulator/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-07-13 01:22:56 +0200
committerRobert Jaros <rjaros@finn.pl>2019-07-13 01:22:56 +0200
commit426da03b5a4e2d715c086e1bfd92b34358ae17ee (patch)
treec842225bf95ee06399cbc9caf546d467f24246cf /kvision-modules/kvision-tabulator/src
parentba5c00b6992d28cfb6afc7fab108c9009f9e1b7c (diff)
downloadkvision-426da03b5a4e2d715c086e1bfd92b34358ae17ee.tar.gz
kvision-426da03b5a4e2d715c086e1bfd92b34358ae17ee.tar.bz2
kvision-426da03b5a4e2d715c086e1bfd92b34358ae17ee.zip
Style fixes. Suppress style warnings.
Diffstat (limited to 'kvision-modules/kvision-tabulator/src')
-rw-r--r--kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt5
1 files changed, 4 insertions, 1 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 47fbe538..290f9f39 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
@@ -380,7 +380,10 @@ open class Tabulator<T : Any>(
open fun applyFilter() {
if (filter != null) {
jsTabulator?.setFilter({ data: dynamic, _: dynamic ->
- filter?.let { it(data) }
+ filter?.let {
+ @Suppress("UnsafeCastFromDynamic")
+ it(data)
+ }
}, null, null)
}
}