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
  • Loading branch information
ycombinator committed Jun 20, 2016
1 parent 15a4fa1 commit 4d24a4b
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 4d24a4b

Please sign in to comment.