Skip to content

Commit eaf4663

Browse files
emitChange
1 parent 2bace81 commit eaf4663

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ep29-emit/app/stores/TodoStore.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ var TodoStore = {
6868
_callback(todos);
6969
},
7070

71+
emitChange: function() {
72+
this.emit(CHANGE_EVENT);
73+
},
74+
7175
addChangeListener: function (callback) {
7276
console.log("registering callback for changelistener");
7377
this.on(CHANGE_EVENT, callback);

0 commit comments

Comments
 (0)