Skip to content

Commit d3ef6b1

Browse files
remove all _callbacks
1 parent 8ff55c4 commit d3ef6b1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ep29-emit/app/stores/TodoStore.js

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

4443
markTodoDone: (todo) => {
@@ -47,7 +46,6 @@ var TodoStore = assign({}, EventEmitter.prototype, {
4746
})[0];
4847

4948
_todo.done = true;
50-
_callback(_todos);
5149
},
5250

5351
markTodoUnDone: (todo) => {
@@ -56,18 +54,15 @@ var TodoStore = assign({}, EventEmitter.prototype, {
5654
})[0];
5755

5856
_todo.done = false;
59-
_callback(_todos);
6057
},
6158

6259
setTodos: (todos) => {
6360
_todos = todos;
6461
console.log("TodoStore", TodoStore.getTodos());
65-
_callback(todos);
6662
},
6763

6864
getTodos: () => {
6965
return _todos;
70-
_callback(todos);
7166
},
7267

7368
emitChange: function() {

0 commit comments

Comments
 (0)