From 9623a6edcb96a24de8ded5c9a876a1a038c6ce1d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 14 Feb 2019 14:32:09 +0100 Subject: Change the receiver type of syncWithList function --- src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main') 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 ObservableList.syncWithList(list: List) { +fun MutableList.syncWithList(list: List) { if (list.isEmpty()) { this.clear() } else { -- cgit