This class is mixed into both the TransitionService and every Transition object.
Global hooks are added to the TransitionService.
Since each Transition is itself a HookRegistry, hooks can also be added to individual Transitions
(note: the hook criteria still must match the Transition).
Mixin class acts as a Transition Hook registry.
Holds the registered HookFn objects. Exposes functions to register new hooks.
This is a Mixin class which can be applied to other objects.
The hook registration functions are onBefore, onStart, onEnter, onRetain, onExit, onFinish, onSuccess, onError.
This class is mixed into both the TransitionService and every Transition object. Global hooks are added to the TransitionService. Since each Transition is itself a
HookRegistry
, hooks can also be added to individual Transitions (note: the hook criteria still must match the Transition).