From 39fa3ffe39be09bde3bc2ee1eefe7493b5e65dd4 Mon Sep 17 00:00:00 2001 From: Gilbert Date: Sun, 25 May 2014 00:21:31 -0500 Subject: [PATCH] Fix typo in Flux TodoMVC Tutorial A sentence says "only handles one actionType" when the example code instead handles two. --- docs/flux-todo-list.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/flux-todo-list.md b/docs/flux-todo-list.md index c68b268ff..ae3c4f2d5 100644 --- a/docs/flux-todo-list.md +++ b/docs/flux-todo-list.md @@ -245,7 +245,7 @@ module.exports = TodoStore; 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. -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. +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. Listening to Changes with a Controller-View