jakesgordon / javascript-state-machine

A javascript finite state machine library
MIT License
8.69k stars 964 forks source link

Method fsm.transitions() should always return array #90

Closed DmitryMyadzelets closed 7 years ago

DmitryMyadzelets commented 8 years ago

The method fsm.transitions returns Array or undefined now. The description states it returns a list of events. No events for a current state doesn't imply no list of events. It implies the empty list.

jakesgordon commented 7 years ago

fixed in (upcoming) v2.4