Skip to content

Commit 575189c

Browse files
emitchange after deleting todo
1 parent c43dbb3 commit 575189c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ep29-emit/app/stores/TodoStore.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ var TodoStore = assign({}, EventEmitter.prototype, {
3838
return t.id != todo.id
3939
} )
4040
_todos = newTodos;
41+
TodoStore.emitChange();
4142
},
4243

4344
markTodoDone: (todo) => {

0 commit comments

Comments
 (0)