js/libs/ember-1.5.1.js
function(context, transition) {
    var controllerName = this.controllerName || this.routeName,
        controller = this.controllerFor(controllerName, true);
    if (!controller) {
      controller =  this.generateController(controllerName, context);
    }

    // Assign the route's controller so that it can more easily be
    // referenced in action handlers
    this.controller = controller;

    
    if (this.setupControllers) {
      Ember.deprecate("Ember.Route.setupControllers is deprecated. Please use Ember.Route.setupController(controller, model) instead.");
      this.setupControllers(controller, context);
    } else {

      
        this.setupController(controller, context);
      
    }

    if (this.renderTemplates) {
      Ember.deprecate("Ember.Route.renderTemplates is deprecated. Please use Ember.Route.renderTemplate(controller, model) instead.");
      this.renderTemplates(context);
    } else {
      this.renderTemplate(controller, context);
    }
  }
function(context, transition) {
    var controllerName = this.controllerName || this.routeName,
        controller = this.controllerFor(controllerName, true);
    if (!controller) {
      controller =  this.generateController(controllerName, context);
    }

    // Assign the route's controller so that it can more easily be
    // referenced in action handlers
    this.controller = controller;

    
    if (this.setupControllers) {
      Ember.deprecate("Ember.Route.setupControllers is deprecated. Please use Ember.Route.setupController(controller, model) instead.");
      this.setupControllers(controller, context);
    } else {

      
        this.setupController(controller, context);
      
    }

    if (this.renderTemplates) {
      Ember.deprecate("Ember.Route.renderTemplates is deprecated. Please use Ember.Route.renderTemplate(controller, model) instead.");
      this.renderTemplates(context);
    } else {
      this.renderTemplate(controller, context);
    }
  }
function ( context , transition ) { var controllerName = this . controllerName || this . routeName , controller = this . controllerFor ( controllerName , true ) ; if ( ! controller ) { controller = this . generateController ( controllerName , context ) ; } // Assign the route's controller so that it can more easily be // referenced in action handlers this . controller = controller ; if ( this . setupControllers ) { Ember . deprecate ( "Ember.Route.setupControllers is deprecated. Please use Ember.Route.setupController(controller, model) instead." ) ; this . setupControllers ( controller , context ) ; } else { this . setupController ( controller , context ) ; } if ( this . renderTemplates ) { Ember . deprecate ( "Ember.Route.renderTemplates is deprecated. Please use Ember.Route.renderTemplate(controller, model) instead." ) ; this . renderTemplates ( context ) ; } else { this . renderTemplate ( controller , context ) ; } }
This hook is the entry point for router.js

@private
@method setup
This hook is the entry point for router . js