@@ -75,7 +75,7 @@ defmodule Scenic.Scene do
7575 them at compile time has two advantages
7676
7777 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 than to build it repeatedly during runtime.
7979 2. Error checking: If your graph has an error in it, it is much
8080 better to have it stop compilation than cause an error during runtime.
8181
@@ -94,8 +94,8 @@ defmodule Scenic.Scene do
9494 its own state. These child scenes can in turn contain other
9595 child scenes. This allows for strong code reuse, isolates knowledge
9696 and logic to just the pieces that need it, and keeps the size of any
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
97+ given graph to a reasonable size. For example, The
98+ handlers of a check-box scene don't need to know anything about
9999 how a slider works, even though they are both used in the same
100100 parent scene. At best, they only need to know that they
101101 both conform to the `Component.Input` behavior, and can thus
@@ -195,11 +195,11 @@ defmodule Scenic.Scene do
195195 to the cursor input, the text field captures text input (and
196196 maybe transforms its graph to show that it is selected).
197197
198- Captured input types are should be released when no longer
198+ Captured input types should be released when no longer
199199 needed so that normal operation can resume.
200200
201- The input messages re not passed on to other scene if
202- the first one doesn't handle it .
201+ The input messages are passed on to a scene's parent if
202+ not processed .
203203
204204 ## Event Filtering
205205
@@ -209,12 +209,12 @@ defmodule Scenic.Scene do
209209
210210 In this way, a `Component.Button` scene can generate a`{:click, msg}`
211211 event that is sent to its parent. If the parent doesn't
212- handle it, it is sent to that scene's parent. And so on util the
212+ handle it, it is sent to that scene's parent. And so on until the
213213 event reaches the root scene. If the root scene doesn't handle
214214 it either then the event is dropped.
215215
216216 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
218218 up the graph. It can handle it and allow it to continue up the
219219 graph. Or it can transform the event and pass the transformed
220220 version up the graph.
@@ -948,7 +948,7 @@ defmodule Scenic.Scene do
948948 ViewPort . set_root ( vp , { Scenic.Scenes.Error , { msgs , scene_module , args } } )
949949 end
950950
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
952952 # case it does go into a crazy loop
953953 # Process.sleep(400)
954954 { :noreply , state }
@@ -1027,7 +1027,7 @@ defmodule Scenic.Scene do
10271027 { :stop , sc_state } ->
10281028 IO . puts ( """
10291029 #{ IO.ANSI . yellow ( ) }
1030- Deprecated handle_input :stop return in #{ inspect ( mod ) }
1030+ Deprecated handle_input :stop return in #{ inspect ( mod ) }
10311031 Please return {:halt, state} instead
10321032 This resolves a naming conflict with the newer GenServer return values
10331033 #{ IO.ANSI . default_color ( ) }
@@ -1038,7 +1038,7 @@ defmodule Scenic.Scene do
10381038 { :stop , sc_state , opts } ->
10391039 IO . puts ( """
10401040 #{ IO.ANSI . yellow ( ) }
1041- Deprecated handle_input :stop return in #{ inspect ( mod ) }
1041+ Deprecated handle_input :stop return in #{ inspect ( mod ) }
10421042 Please return {:halt, state} instead
10431043 This resolves a naming conflict with the newer GenServer return values
10441044 #{ IO.ANSI . default_color ( ) }
@@ -1049,7 +1049,7 @@ defmodule Scenic.Scene do
10491049 { :continue , sc_state } ->
10501050 IO . puts ( """
10511051 #{ IO.ANSI . yellow ( ) }
1052- Deprecated handle_input :continue return in #{ inspect ( mod ) }
1052+ Deprecated handle_input :continue return in #{ inspect ( mod ) }
10531053 Please return {:cont, state} instead
10541054 This resolves a naming conflict with the newer GenServer return values
10551055 #{ IO.ANSI . default_color ( ) }
@@ -1061,7 +1061,7 @@ defmodule Scenic.Scene do
10611061 { :continue , sc_state , opts } ->
10621062 IO . puts ( """
10631063 #{ IO.ANSI . yellow ( ) }
1064- Deprecated handle_input :continue return in #{ inspect ( mod ) }
1064+ Deprecated handle_input :continue return in #{ inspect ( mod ) }
10651065 Please return {:cont, state} instead
10661066 This resolves a naming conflict with the newer GenServer return values
10671067 #{ IO.ANSI . default_color ( ) }
@@ -1105,7 +1105,7 @@ defmodule Scenic.Scene do
11051105 { :stop , sc_state } ->
11061106 IO . puts ( """
11071107 #{ IO.ANSI . yellow ( ) }
1108- Deprecated filter_event :stop return in #{ inspect ( mod ) }
1108+ Deprecated filter_event :stop return in #{ inspect ( mod ) }
11091109 Please return {:halt, state} instead
11101110 This resolves a naming conflict with the newer GenServer return values
11111111 #{ IO.ANSI . default_color ( ) }
@@ -1116,7 +1116,7 @@ defmodule Scenic.Scene do
11161116 { :stop , sc_state , opts } ->
11171117 IO . puts ( """
11181118 #{ IO.ANSI . yellow ( ) }
1119- Deprecated filter_event :stop return in #{ inspect ( mod ) }
1119+ Deprecated filter_event :stop return in #{ inspect ( mod ) }
11201120 Please return {:halt, state} instead
11211121 This resolves a naming conflict with the newer GenServer return values
11221122 #{ IO.ANSI . default_color ( ) }
@@ -1127,7 +1127,7 @@ defmodule Scenic.Scene do
11271127 { :continue , event , sc_state } ->
11281128 IO . puts ( """
11291129 #{ IO.ANSI . yellow ( ) }
1130- Deprecated filter_event :continue return in #{ inspect ( mod ) }
1130+ Deprecated filter_event :continue return in #{ inspect ( mod ) }
11311131 Please return {:cont, state} instead
11321132 This resolves a naming conflict with the newer GenServer return values
11331133 #{ IO.ANSI . default_color ( ) }
@@ -1139,7 +1139,7 @@ defmodule Scenic.Scene do
11391139 { :continue , event , sc_state , opts } ->
11401140 IO . puts ( """
11411141 #{ IO.ANSI . yellow ( ) }
1142- Deprecated filter_event :continue return in #{ inspect ( mod ) }
1142+ Deprecated filter_event :continue return in #{ inspect ( mod ) }
11431143 Please return {:cont, state} instead
11441144 This resolves a naming conflict with the newer GenServer return values
11451145 #{ IO.ANSI . default_color ( ) }
0 commit comments