We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I believe there is a typo on line 78 of the lifecycle event documentation file. The code reads like this:
var fsm = new StateMachine({ transitions: [ { name: 'step', from: 'A', to: 'B' } ], methods: { onTransition: function(lifecycle, arg1, arg2) { console.log(lifecycle.transition); // 'step' console.log(lifecycle.from); // 'A' console.log(lifecycle.to); // 'B' console.log(arg1); // 42 console.log(arg2); // 'hello' } } }); fsm.step(42, 'hello');
Shouldn't it be this instead (with onStep instead of onTransition:
onStep
onTransition
var fsm = new StateMachine({ transitions: [ { name: 'step', from: 'A', to: 'B' } ], methods: { onStep: function(lifecycle, arg1, arg2) { console.log(lifecycle.transition); // 'step' console.log(lifecycle.from); // 'A' console.log(lifecycle.to); // 'B' console.log(arg1); // 42 console.log(arg2); // 'hello' } } }); fsm.step(42, 'hello');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I believe there is a typo on line 78 of the lifecycle event documentation file. The code reads like this:
Shouldn't it be this instead (with
onStep
instead ofonTransition
:The text was updated successfully, but these errors were encountered: