I have a class with 2 custom events. Call them onA() and onB() What I'd like to do is trigger onA() and upon completion of onA(), trigger onB() while guaranteeing that whatever code the user has associated with the onA() event, is completely finished before triggering the event for onB().
I figured chain might be the way to do that but I'm not sure. If the user places a morph or a chain of their own in the function for onA(), I imagine it gets complicated. Is there a way to do what I want?
