Skip to content

Commit a488c2a

Browse files
committed
Updated examples to use updated event-loop.crumb
1 parent 546a663 commit a488c2a

10 files changed

+17
-17
lines changed

examples/10-print.crumb

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ state = 0
2929

3030
// event loop
3131
(use "./event-loop.crumb" {
32-
<- (start state listeners)
32+
<- (start state listeners 0.1)
3333
})

examples/car.crumb

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ listeners = (list (list
6464

6565
// event loop
6666
(use "./event-loop.crumb" {
67-
<- (start state listeners)
67+
<- (start state listeners 0.1)
6868
})
6969

7070
// tear down: show cursor and clear

examples/demo.crumb

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ state = (list 0 "" (list 0 0) "")
5151

5252
// event loop
5353
(use "./event-loop.crumb" {
54-
<- (start state listeners)
54+
<- (start state listeners 0.1)
5555
})
5656

5757
// tear down: show cursor and clear

examples/fish.crumb

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ listeners = (list (list
9292

9393
// event loop
9494
(use "./event-loop.crumb" {
95-
<- (start state listeners)
95+
<- (start state listeners 0.1)
9696
})
9797

9898
// tear down: show cursor and clear

examples/many.crumb

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ on_state = {
4848
<- state
4949
}
5050

51-
on_loop = {
51+
on_move = {
5252
// reset
5353
<- (list "West " "North " " East" "South ")
5454
}
@@ -92,10 +92,10 @@ on_click_south = {
9292
}
9393

9494
listeners = (list
95-
(list on_state on_loop void void on_click_west)
96-
(list on_state on_loop void void on_click_north)
97-
(list on_state on_loop void void on_click_east)
98-
(list on_state on_loop void void on_click_south)
95+
(list on_state void void on_move on_click_west)
96+
(list on_state void void on_move on_click_north)
97+
(list on_state void void on_move on_click_east)
98+
(list on_state void void on_move on_click_south)
9999
)
100100

101101
state = (list "West " "North " " East" "South ")
@@ -109,5 +109,5 @@ state = (list "West " "North " " East" "South ")
109109

110110
// event loop
111111
(use "./event-loop.crumb" {
112-
<- (start state listeners)
112+
<- (start state listeners void)
113113
})

examples/minimal-listeners.crumb

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ listeners = (list
2121

2222
// event loop
2323
(use "./event-loop.crumb" {
24-
<- (start 0 listeners)
24+
<- (start 0 listeners 0.1)
2525
})

examples/minimal-loop-state.crumb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ state = 1
1010

1111
// event loop
1212
(use "./event-loop.crumb" {
13-
<- (start state listeners)
13+
<- (start state listeners 0.1)
1414
})

examples/minimal-reactive-state.crumb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
on_loop = {
1+
on_move = {
22
<- (add state 1)
33
}
44

@@ -8,12 +8,12 @@ on_state = {
88
}
99

1010
listeners = (list
11-
(list on_state on_loop void void void)
11+
(list on_state void void on_move void)
1212
)
1313

1414
state = 1
1515

1616
// event loop
1717
(use "./event-loop.crumb" {
18-
<- (start state listeners)
18+
<- (start state listeners void)
1919
})

examples/minimal.crumb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ state = 0
1111

1212
// event loop
1313
(use "./event-loop.crumb" {
14-
<- (start state listeners)
14+
<- (start state listeners 0.1)
1515
})

examples/resize.crumb

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ state = (list void void)
2121

2222
// event loop
2323
(use "./event-loop.crumb" {
24-
<- (start state listeners)
24+
<- (start state listeners 0.1)
2525
})
2626

2727
// tear down: show cursor and clear

0 commit comments

Comments
 (0)