Skip to content

Commit c20e323

Browse files
author
Tyson Williams
committed
improved name of bindings function
1 parent 783eaa4 commit c20e323

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Samples/SubModelSeq/Program.fs

+3-3
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ module Bindings =
170170

171171
open App
172172

173-
let rec counterBindings () : Binding<Model * Counter, Msg> list = [
173+
let rec counterTreeBindings () : Binding<Model * Counter, Msg> list = [
174174
"CounterIdText" |> Binding.oneWay(fun (_, { Id = CounterId id }) -> id)
175175

176176
"CounterValue" |> Binding.oneWay(fun (_, c) -> c.CounterValue)
@@ -204,15 +204,15 @@ module Bindings =
204204
(fun ((m, _), childCounter) -> (m, childCounter)),
205205
(fun (_, c) -> c.Id),
206206
snd,
207-
counterBindings)
207+
counterTreeBindings)
208208
]
209209

210210

211211
let rootBindings () : Binding<Model, Msg> list = [
212212
"Counters" |> Binding.subModelSeq(
213213
(fun m -> m |> topLevelCounters),
214214
(fun c -> c.Id),
215-
counterBindings)
215+
counterTreeBindings)
216216

217217
"ToggleGlobalState" |> Binding.cmd ToggleGlobalState
218218

0 commit comments

Comments
 (0)