mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Add missing emitChange() to Flux docs
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user