I am trying to implement some 'user changes their mind' functionality.
1.
within: onEnteringState: function( stateName, args )
the this.isCurrentPlayerActive() is not set to true during normal game flow.
If the page is refreshed via F5, then this.isCurrentPlayerActive() does come back as true, and all works ok.
2.
Also, the this.checkAction('action_name') works fine when the player is active, but if the player is not active then this returns false.
The wiki doc suggests that this checks the game state, and doesn't say anything about the player being active or not. I can't find anything specific for checking the game state for JS.