code: function(target) {
      var event = function(stateManager, context) {
        if (Event && context instanceof Event) {
          if (context.hasOwnProperty('context')) {
            context = context.context;
          } else {
            // If we received an event and it doesn't contain
            // a context, don't pass along a superfluous
            // context to the target of the event.
            return stateManager.transitionTo(target);
          }
        }
  
        stateManager.transitionTo(target, context);
      };
  
      event.transitionTarget = target;
  
      return event;
    }
docs: @static
  
  Creates an action function for transitioning to the named state while preserving context.
  
  The following example StateManagers are equivalent:
  
  aManager = Ember.StateManager.create({
  stateOne: Ember.State.create({
  changeToStateTwo: Ember.State.transitionTo('stateTwo')
  }),
  stateTwo: Ember.State.create({})
  })
  
  bManager = Ember.StateManager.create({
  stateOne: Ember.State.create({
  changeToStateTwo: function(manager, context){
  manager.transitionTo('stateTwo', context)
  }
  }),
  stateTwo: Ember.State.create({})
  })
  
  @param {String} target