Add missing emitChange() to Flux docs

This commit is contained in:
Ben Alpert 2014-05-10 17:50:26 -03:00
parent 6b758ef283
commit 6b1c546602
1 changed files with 2 additions and 1 deletions

View File

@ -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.