Skip to content

Commit

Permalink
fixed a bug occured when there is no stream filtering function
Browse files Browse the repository at this point in the history
  • Loading branch information
hitsujiwool committed Aug 31, 2012
1 parent a0ddaa9 commit ff5222c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/javascripts/logstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
socket = io.connect('/'),
streams = {};
socket.on('data', function(data) {
that.filters.forEach(function(filter) {
filtered = filter(data);
});

var id = data.udid,
name = data.name,
stream = streams[id],
filtered;
filtered = data;

that.filters.forEach(function(filter) {
filtered = filter(data);
});

if (!stream) {
stream = streams[id] = new PersonStream(id, name);
that.emit('connection', stream);
Expand Down

0 comments on commit ff5222c

Please sign in to comment.