@@ -75,7 +75,7 @@ defmodule Scenic.Scene do
75
75
them at compile time has two advantages
76
76
77
77
1. Performance: It is clearly faster to build the graph once during
78
- build time to to build it repeatedly during runtime.
78
+ build time then to build it repeatedly during runtime.
79
79
2. Error checking: If your graph has an error in it, it is much
80
80
better to have it stop compilation than cause an error during runtime.
81
81
@@ -95,7 +95,7 @@ defmodule Scenic.Scene do
95
95
child scenes. This allows for strong code reuse, isolates knowledge
96
96
and logic to just the pieces that need it, and keeps the size of any
97
97
given graph to a reasonable size. For example, The graph
98
- hand handlers of a check-box don't need to know anything about
98
+ handlers of a check-box don't need to know anything about
99
99
how a slider works, even though they are both used in the same
100
100
parent scene. At best, they only need to know that they
101
101
both conform to the `Component.Input` behavior, and can thus
@@ -195,10 +195,10 @@ defmodule Scenic.Scene do
195
195
to the cursor input, the text field captures text input (and
196
196
maybe transforms its graph to show that it is selected).
197
197
198
- Captured input types are should be released when no longer
198
+ Captured input types should be released when no longer
199
199
needed so that normal operation can resume.
200
200
201
- The input messages re not passed on to other scene if
201
+ The input messages are passed on to other scene if
202
202
the first one doesn't handle it.
203
203
204
204
## Event Filtering
@@ -214,7 +214,7 @@ defmodule Scenic.Scene do
214
214
it either then the event is dropped.
215
215
216
216
To handle events, you add `filter_event/3` functions to your scene.
217
- This function handle the event, and stop its progress backwards
217
+ This function handles the event, and stop its progress backwards
218
218
up the graph. It can handle it and allow it to continue up the
219
219
graph. Or it can transform the event and pass the transformed
220
220
version up the graph.
@@ -948,7 +948,7 @@ defmodule Scenic.Scene do
948
948
ViewPort . set_root ( vp , { Scenic.Scenes.Error , { msgs , scene_module , args } } )
949
949
end
950
950
951
- # purposefully slow down the reply in the event of a crash. Just in
951
+ # purposefully slow down the reply in the event of a crash. Just in
952
952
# case it does go into a crazy loop
953
953
# Process.sleep(400)
954
954
{ :noreply , state }
@@ -1027,7 +1027,7 @@ defmodule Scenic.Scene do
1027
1027
{ :stop , sc_state } ->
1028
1028
IO . puts ( """
1029
1029
#{ IO.ANSI . yellow ( ) }
1030
- Deprecated handle_input :stop return in #{ inspect ( mod ) }
1030
+ Deprecated handle_input :stop return in #{ inspect ( mod ) }
1031
1031
Please return {:halt, state} instead
1032
1032
This resolves a naming conflict with the newer GenServer return values
1033
1033
#{ IO.ANSI . default_color ( ) }
@@ -1038,7 +1038,7 @@ defmodule Scenic.Scene do
1038
1038
{ :stop , sc_state , opts } ->
1039
1039
IO . puts ( """
1040
1040
#{ IO.ANSI . yellow ( ) }
1041
- Deprecated handle_input :stop return in #{ inspect ( mod ) }
1041
+ Deprecated handle_input :stop return in #{ inspect ( mod ) }
1042
1042
Please return {:halt, state} instead
1043
1043
This resolves a naming conflict with the newer GenServer return values
1044
1044
#{ IO.ANSI . default_color ( ) }
@@ -1049,7 +1049,7 @@ defmodule Scenic.Scene do
1049
1049
{ :continue , sc_state } ->
1050
1050
IO . puts ( """
1051
1051
#{ IO.ANSI . yellow ( ) }
1052
- Deprecated handle_input :continue return in #{ inspect ( mod ) }
1052
+ Deprecated handle_input :continue return in #{ inspect ( mod ) }
1053
1053
Please return {:cont, state} instead
1054
1054
This resolves a naming conflict with the newer GenServer return values
1055
1055
#{ IO.ANSI . default_color ( ) }
@@ -1061,7 +1061,7 @@ defmodule Scenic.Scene do
1061
1061
{ :continue , sc_state , opts } ->
1062
1062
IO . puts ( """
1063
1063
#{ IO.ANSI . yellow ( ) }
1064
- Deprecated handle_input :continue return in #{ inspect ( mod ) }
1064
+ Deprecated handle_input :continue return in #{ inspect ( mod ) }
1065
1065
Please return {:cont, state} instead
1066
1066
This resolves a naming conflict with the newer GenServer return values
1067
1067
#{ IO.ANSI . default_color ( ) }
@@ -1105,7 +1105,7 @@ defmodule Scenic.Scene do
1105
1105
{ :stop , sc_state } ->
1106
1106
IO . puts ( """
1107
1107
#{ IO.ANSI . yellow ( ) }
1108
- Deprecated filter_event :stop return in #{ inspect ( mod ) }
1108
+ Deprecated filter_event :stop return in #{ inspect ( mod ) }
1109
1109
Please return {:halt, state} instead
1110
1110
This resolves a naming conflict with the newer GenServer return values
1111
1111
#{ IO.ANSI . default_color ( ) }
@@ -1116,7 +1116,7 @@ defmodule Scenic.Scene do
1116
1116
{ :stop , sc_state , opts } ->
1117
1117
IO . puts ( """
1118
1118
#{ IO.ANSI . yellow ( ) }
1119
- Deprecated filter_event :stop return in #{ inspect ( mod ) }
1119
+ Deprecated filter_event :stop return in #{ inspect ( mod ) }
1120
1120
Please return {:halt, state} instead
1121
1121
This resolves a naming conflict with the newer GenServer return values
1122
1122
#{ IO.ANSI . default_color ( ) }
@@ -1127,7 +1127,7 @@ defmodule Scenic.Scene do
1127
1127
{ :continue , event , sc_state } ->
1128
1128
IO . puts ( """
1129
1129
#{ IO.ANSI . yellow ( ) }
1130
- Deprecated filter_event :continue return in #{ inspect ( mod ) }
1130
+ Deprecated filter_event :continue return in #{ inspect ( mod ) }
1131
1131
Please return {:cont, state} instead
1132
1132
This resolves a naming conflict with the newer GenServer return values
1133
1133
#{ IO.ANSI . default_color ( ) }
@@ -1139,7 +1139,7 @@ defmodule Scenic.Scene do
1139
1139
{ :continue , event , sc_state , opts } ->
1140
1140
IO . puts ( """
1141
1141
#{ IO.ANSI . yellow ( ) }
1142
- Deprecated filter_event :continue return in #{ inspect ( mod ) }
1142
+ Deprecated filter_event :continue return in #{ inspect ( mod ) }
1143
1143
Please return {:cont, state} instead
1144
1144
This resolves a naming conflict with the newer GenServer return values
1145
1145
#{ IO.ANSI . default_color ( ) }
0 commit comments