Skip to content

Commit d87f67c

Browse files
authored
Merge pull request #7 from greggirwin/master
A little more wordsmithing.
2 parents 5cb78d4 + 31ec74d commit d87f67c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reactivity.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ The reactive API and its use are simple and practical, even if the description i
2828

2929
*Graphs C, D & E show chained reactions, where some targets are, themselves, reactors, setting up a chain of relations that can have any shape.*
3030

31-
Reactions are run asynchronously, when a source field(s) value is changed. The reaction relationship is maintained until the reaction is explicitly destroyed using `react/unlink` or `clear-reactions`.
31+
Reactions are run asynchronously, when a source field's value is changed. The reaction relationship is maintained until the reaction is explicitly destroyed using `react/unlink` or `clear-reactions`.
3232

3333
Only the source objects in a reactive expression need to be a reactor. The target can be a simple object. If the target is also a reactor, reactions are chained and a graph of relations is constructed implicitly.
3434

3535
Notes:
36-
* Red's reactive support could be extended in the future to also support a "pull" model.
36+
* Red's reactive support could be extended in the future to support a "pull" model.
3737
* This is not a [FRP](https://en.wikipedia.org/wiki/Functional_reactive_programming) framework, though event streams could be supported in the future.
38-
* The Red/View GUI engine relies on *face!* objects in order to operate graphic objects. Faces are reactors, and they can be used for setting reactive relations between faces or with non-reactor objects.
38+
* The Red/View GUI engine relies on *face!* objects in order to operate on graphic objects. Faces are reactors, and they can be used for setting reactive relations between faces or with non-reactor objects.
3939

4040
## Glossary
4141

@@ -61,7 +61,7 @@ The simplest form of reactions is a "static relation" created between *named* ob
6161
b: base react [b/color/1: to integer! 255 * s/data]
6262
]
6363

64-
This example sets a reactive relation between a slider named `s` and a base face named `b`. When the slider is moved, the base face's background red component is changed accordingly. The reactive expression cannot be re-used for a different set of faces. This is the simplest form of reactive behavior for graphic objects in Red/View.
64+
This example sets a reactive relation between a slider named `s` and a base face named `b`. When the slider is moved, the red component of the base face's background color is changed accordingly. The reactive expression cannot be re-used for a different set of faces. This is the simplest form of reactive behavior for graphic objects in Red/View.
6565

6666
**Example 2**
6767

0 commit comments

Comments
 (0)