aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/utils
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-02-14 14:32:09 +0100
committerRobert Jaros <rjaros@finn.pl>2019-02-14 14:35:25 +0100
commit9623a6edcb96a24de8ded5c9a876a1a038c6ce1d (patch)
treebacbc5be412f8ccc5c4a19f62b1d2ad5dc881e76 /src/main/kotlin/pl/treksoft/kvision/utils
parent57afa10054753dd2926615be002fdd5de464fdd8 (diff)
downloadkvision-9623a6edcb96a24de8ded5c9a876a1a038c6ce1d.tar.gz
kvision-9623a6edcb96a24de8ded5c9a876a1a038c6ce1d.tar.bz2
kvision-9623a6edcb96a24de8ded5c9a876a1a038c6ce1d.zip
Change the receiver type of syncWithList function
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/utils')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt b/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt
index e252d672..778210ab 100644
--- a/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt
@@ -23,7 +23,6 @@
package pl.treksoft.kvision.utils
-import com.lightningkite.kotlin.observable.list.ObservableList
import kotlinx.coroutines.suspendCancellableCoroutine
import org.w3c.files.File
import org.w3c.files.FileReader
@@ -206,9 +205,9 @@ suspend fun File.getContent(): String = suspendCancellableCoroutine { cont ->
}
/**
- * Utility extension function to synchronise elements of the ObservableList.
+ * Utility extension function to synchronise elements of the MutableList.
*/
-fun <T> ObservableList<T>.syncWithList(list: List<T>) {
+fun <T> MutableList<T>.syncWithList(list: List<T>) {
if (list.isEmpty()) {
this.clear()
} else {