Skip to content

Commit d8e4e0d

Browse files
emit change after adding todo
1 parent 575189c commit d8e4e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ep29-emit/app/stores/TodoStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var TodoStore = assign({}, EventEmitter.prototype, {
6161

6262
setTodos: (todos) => {
6363
_todos = todos;
64-
console.log("TodoStore", TodoStore.getTodos());
64+
TodoStore.emitChange();
6565
},
6666

6767
getTodos: () => {

0 commit comments

Comments
 (0)