jakesgordon / javascript-state-machine

A javascript finite state machine library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to change transitions in event

phamhoaithuong opened this issue · comments

I have transitions
ready - from a - to b
reset- from b - to c
init: a
When i call transitions ready, current state is b, in event onReady, i want call transitions reset to switch state b to c. How to do that in event onReady? Many thanks.

SetTimeout(()=>{this.reset()},0)