Event Cycle
As passages are loaded, different internal events are triggered.
These can be listened to using jQuery’s on() function on the window global object.
In 2.X, all events use the namespace “sm” and describe via verb tense the status of the event.
Story Start
sm.story.started
Passage Progression
sm.passage.hiddensm.passage.showingsm.checkpoint.addedORsm.checkpoint.failedsm.passage.shown
Story Error
sm.story.error