From 32ddb5789a4f9b644836d3a0cc2f9b14b37b5e5b Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 7 Mar 2018 00:09:02 +0100 Subject: Add model parameter to DataContainer callback functions. --- src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt index 809f5880..9e5c769f 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt @@ -42,7 +42,7 @@ class DataContainerSpec : DomSpec { } val model = observableListOf(Model("First"), Model("Second")) - val container = DataContainer(model, { index -> Label(model[index].value) }) + val container = DataContainer(model, { _, m -> Label(m.value) }) root.add(container) val element = document.getElementById("test") assertEqualsHtml( -- cgit