Emit new state + message as well, on status change
This commit is contained in:
parent
15a4fa1cdd
commit
4d24a4b316
|
@ -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);
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue