jbeard4 / SCION

SCXML/Statecharts in JavaScript, moved to gitlab: https://gitlab.com/scion-scxml/scion
https://scion.scxml.io
Apache License 2.0
149 stars 29 forks source link

Fix canceling delayed events #311

Closed mogsie closed 9 years ago

mogsie commented 9 years ago

Delayed events aren't canceled correctly, because "sendid" is not the same as "sendId".

The bug is exposed here : http://jsfiddle.net/qmLsqh0j/2/ The events are cancelled when the state is exited, but the events fire nonetheless. This change fixes that.