Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 321643a

Browse files
committed
Add missing emitChange() to Flux docs
1 parent c29f182 commit 321643a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/docs/flux-todo-list.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,10 @@ var TodoStore = merge(EventEmitter.prototype, {
221221

222222
case TodoConstants.TODO_DESTROY:
223223
destroy(action.id);
224+
TodoStore.emitChange();
224225
break;
225226

226-
// add more cases for other actionTypes, like TODO_UPDATE, etc.
227+
// add more cases for other actionTypes, like TODO_UPDATE, etc.
227228
}
228229

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

0 commit comments

Comments
 (0)