Skip to content

Commit 3c82003

Browse files
use eventemitter
1 parent 43c732d commit 3c82003

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
@@ -30,7 +30,7 @@ AppDispatcher.register(function(action) {
3030
var _todos = {};
3131
var CHANGE_EVENT = 'change';
3232

33-
var TodoStore = {
33+
var TodoStore = assign({}, EventEmitter.prototype, {
3434

3535
deleteTodo: (todo) => {
3636
var newTodos = _todos.filter( (t) => {

0 commit comments

Comments
 (0)