Fix typo in Flux TodoMVC Tutorial
A sentence says "only handles one actionType" when the example code instead handles two.
Gilbert committed
May 25, 2014 at 00:21 UTC
330fa30141014a0ddafbaae81a6236dd223e7324
1 file changed
+1
-1
docs/docs/flux-todo-list.md
+1
-1
@@ -245,7 +245,7 @@ module.exports = TodoStore;
245
246
There are a few important things to note in the above code. To start, we are maintaining a private data structure called _todos. This object contains all the individual to-do items. Because this variable lives outside the class, but within the closure of the module, it remains private — it cannot be directly changed from the outside. This helps us preserve a distinct input/output interface for the flow of data by making it impossible to update the store without using an action.
247
248
-Another important part is the registration of the store's callback with the dispatcher. We pass in our payload handling callback to the dispatcher and preserve the index that this store has in the dispatcher's registry. The callback function currently only handles one actionType, but later we can add as many as we need.
248
+Another important part is the registration of the store's callback with the dispatcher. We pass in our payload handling callback to the dispatcher and preserve the index that this store has in the dispatcher's registry. The callback function currently only handles two actionTypes, but later we can add as many as we need.
249
250
251
Listening to Changes with a Controller-View