Skip to content

Commit

Permalink
Emit new state + message as well, on status change
Browse files Browse the repository at this point in the history
Former-commit-id: 4d24a4b
  • Loading branch information
ycombinator committed Jun 20, 2016
1 parent 19de1fe commit 6f175f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/status/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ states.all.forEach(function (state) {
return;
}

this.emit(state.id, previous, previousMsg);
this.emit('change', previous, previousMsg);
this.emit(state.id, previous, previousMsg, this.state, this.message);
this.emit('change', previous, previousMsg, this.state, this.message);
};
});

Expand Down

0 comments on commit 6f175f7

Please sign in to comment.