Instead of defining the navigatorBehaviors the following way:
navigatorBehaviors: ["IHasStateInitialization","IHasStateTransition"],
It might be more flexible to do:
navigatorBehaviors: {
initialize: 'myInitializeMethod',
transition: {
in: 'myTransitionInMethod',
out: 'myTransitionOutMethod'
}
}
This allows the user to use the methods of choice instead of dictating them. This code is also a bit more descriptive over methods that just gets called on responder.
Maybe the array notation should be maintained, so we can fall back at using defaults? This also allows for backwards compatibility.
Anyone more thoughts on this?
Instead of defining the navigatorBehaviors the following way:
It might be more flexible to do:
This allows the user to use the methods of choice instead of dictating them. This code is also a bit more descriptive over methods that just gets called on responder.
Maybe the array notation should be maintained, so we can fall back at using defaults? This also allows for backwards compatibility.
Anyone more thoughts on this?