Skip to content

Commit

Permalink
Add missing emitChange() to Flux docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits committed May 10, 2014
1 parent 6b758ef commit 6b1c546
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/flux-todo-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,10 @@ var TodoStore = merge(EventEmitter.prototype, {

case TodoConstants.TODO_DESTROY:
destroy(action.id);
TodoStore.emitChange();
break;

// add more cases for other actionTypes, like TODO_UPDATE, etc.
// add more cases for other actionTypes, like TODO_UPDATE, etc.
}

return true; // No errors. Needed by promise in Dispatcher.
Expand Down

0 comments on commit 6b1c546

Please sign in to comment.