set(endState, transition, callback)
Set the end states with a shared transition, with optional callback.
Parameters
endState
Number|Array
Final State. Use a multi-element argument for multiple transitions.
transition
Object
Transition definition, shared among all instances
callback
Function
called when all endStates have been reached.