Add missing emitChange() to Flux docs
Ben Alpert committed
May 10, 2014 at 17:50 UTC
6b1c546602dcb436942c2bb69e4ff6a32f530e84
1 file changed
+2
-1
docs/docs/flux-todo-list.md
+2
-1
@@ -221,9 +221,10 @@ var TodoStore = merge(EventEmitter.prototype, {
221
222
case TodoConstants.TODO_DESTROY:
223
destroy(action.id);
224
+ TodoStore.emitChange();
225
break;
226
226
- // add more cases for other actionTypes, like TODO_UPDATE, etc.
227
+ // add more cases for other actionTypes, like TODO_UPDATE, etc.
228
}
229
230
return true; // No errors. Needed by promise in Dispatcher.