emberjs/ember.js — pull request #947 by jbrown (2012-06-04 21:37:01+00:00)
Title: WIP: Make transitionEvent work with async transitions.

Currently, if you use an async transition, the `transitionEvent` will fire before the transition actually finishes. For example, `connectOutlets` will fire on an entered state before any asynchronous exits complete. I got a test case passing by moving the call to `triggerSetupContext` into the `doneCallback` for the `asyncEach` on the entered states. However, now I get a failure for *"redirectsTo: if a leaf state has a redirectsTo, it automatically transitions into that state."*

@wycats I have a feeling this will not be trivial. What are your thoughts?