emberjs/ember.js — pull request #350 by joewest (2012-01-06 08:03:23+00:00)
Title: Add caching of enter/exit states by route to States

StateManager computes a set of enter/exit states whenever it goToState()'s

Now these sets are cached in a new property (State.routes) on the currentState.

e.g. currentState.routes['grandparent.uncle'] = { exitStates: [..], enterStates: [..], futureState: }

The futureState is used to set the currentState after performing the necessary enter/exits. Storing it is necessary for cases where the StateManager transitions to a previously entered state "above" the currentState.

start / initialStates are not async yet.

Also getPaths is replaced with findStatesByRoute for perfs.