public/javascripts/vendor/javascripts/ember.js
function(root, path) {
    var parts = path.split('.'),
        state = root;

    for (var i=0, l=parts.length; i<l; i++) {
      state = get(get(state, 'states'), parts[i]);
      if (!state) { break; }
    }

    return state;
  }
function(root, path) {
    var parts = path.split('.'),
        state = root;

    for (var i=0, l=parts.length; i<l; i++) {
      state = get(get(state, 'states'), parts[i]);
      if (!state) { break; }
    }

    return state;
  }
function ( root , path ) { var parts = path . split ( '.' ) , state = root ; for ( var i = 0 , l = parts . length ; i < l ; i ++ ) { state = get ( get ( state , 'states' ) , parts [ i ] ) ; if ( ! state ) { break ; } } return state ; }
Finds a state by its state path.

Example:

manager = Ember.StateManager.create({
root: Ember.State.create({
dashboard: Ember.State.create()
})
});

manager.getStateByPath(manager, "root.dashboard")

returns the dashboard state

@param {Ember.State} root the state to start searching from
@param {String} path the state path to follow
@returns {Ember.State} the state at the end of the path
Finds a state by its state path .