Skip to content

Commit c352bd0

Browse files
committed
socket impl
1 parent 66833d6 commit c352bd0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/browser/js/views/todos.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ let app = {
4545
break;
4646
}
4747
}
48-
if (!found) this.todos.push(todo);
48+
if (!found) self.todos.push(todo);
4949
});
5050
todoStorage.fetch((err, todos) => {
5151
this.todos = todos;

src/server/sockets.js

-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ exports.init = function(_io) {
88
};
99

1010
exports.todoAdded = function(todo) {
11-
console.log(todo);
1211
io.emit('todoAdded', todo);
1312
};

0 commit comments

Comments
 (0)