Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Dohan committed May 25, 2024
1 parent 014c515 commit 5336ce2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ abstract class CSValueStoreProperty<T>(
onValueChanged(newValue, fire)
}

override fun toString() = super.toString() + ":$key:$value"
override fun toString() = "key:$key ${super.toString()}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import renetik.android.json.obj.CSJsonObject
import renetik.android.store.CSStore

open class CSJsonObjectStore : CSJsonObject(), CSStore {

companion object {
fun CSJsonObjectStore(data: Map<String, Any?>) =
CSJsonObjectStore().apply { load(data) }
}

override val eventLoaded = event<CSStore>()
override val eventChanged = event<CSStore>()
override fun load(data: Map<String, Any?>) = super.load(data)
Expand Down

0 comments on commit 5336ce2

Please sign in to comment.