From 9a70dcb74707dac6d7e88d9b75ddf36b17fd5632 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 29 Jan 2018 20:55:02 +0100 Subject: Simplified data container --- 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 30cf0db9..b4b1122f 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/data/DataContainerSpec.kt @@ -22,7 +22,7 @@ class DataContainerSpec : DomSpec { } val model = observableListOf(Model("First"), Model("Second")) - val container = DataContainer(model, { element, _ -> Label(element.value) }) + val container = DataContainer(model, { index -> Label(model[index].value) }) root.add(container) val element = document.getElementById("test") assertEquals( -- cgit