diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-01-20 13:35:43 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-01-20 13:35:43 +0100 |
commit | dbe9ddafc5f48ccf0979625b041b0cdf1c1f5795 (patch) | |
tree | 4d53a8dc44b5742ceb34d8cb43563554f2855ca0 /src/main/kotlin/pl | |
parent | 07cbe6495aa66470d56030a6d430808f927176e7 (diff) | |
download | kvision-dbe9ddafc5f48ccf0979625b041b0cdf1c1f5795.tar.gz kvision-dbe9ddafc5f48ccf0979625b041b0cdf1c1f5795.tar.bz2 kvision-dbe9ddafc5f48ccf0979625b041b0cdf1c1f5795.zip |
Fix tabulator module dependencies
Diffstat (limited to 'src/main/kotlin/pl')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt b/src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt index 7d41e05c..44e115eb 100644 --- a/src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt +++ b/src/main/kotlin/pl/treksoft/kvision/state/ObservableList.kt @@ -35,6 +35,10 @@ interface ObservableList<T> : MutableList<T>, ObservableState<List<T>> { class ObservableListWrapper<T>(val mutableList: MutableList<T> = mutableListOf()) : MutableList<T>, ObservableList<T>, ObservableState<List<T>> { + override fun getState(): List<T> { + return this + } + override fun subscribe(observer: (List<T>) -> Unit): () -> Unit { onUpdate += observer observer(this) |