js/libs/ember-1.5.1.js
function() {
    this.router = this.router || this.constructor.map(Ember.K);

    var router = this.router,
        location = get(this, 'location'),
        container = this.container,
        self = this,
        initialURL = get(this, 'initialURL');

    
      // Allow the Location class to cancel the router setup while it refreshes
      // the page
      if (get(location, 'cancelRouterSetup')) {
        return;
      }
    

    this._setupRouter(router, location);

    container.register('view:default', DefaultView);
    container.register('view:toplevel', Ember.View.extend());

    location.onUpdateURL(function(url) {
      self.handleURL(url);
    });

    if (typeof initialURL === "undefined") {
      initialURL = location.getURL();
    }

    this.handleURL(initialURL);
  }
function() {
    this.router = this.router || this.constructor.map(Ember.K);

    var router = this.router,
        location = get(this, 'location'),
        container = this.container,
        self = this,
        initialURL = get(this, 'initialURL');

    
      // Allow the Location class to cancel the router setup while it refreshes
      // the page
      if (get(location, 'cancelRouterSetup')) {
        return;
      }
    

    this._setupRouter(router, location);

    container.register('view:default', DefaultView);
    container.register('view:toplevel', Ember.View.extend());

    location.onUpdateURL(function(url) {
      self.handleURL(url);
    });

    if (typeof initialURL === "undefined") {
      initialURL = location.getURL();
    }

    this.handleURL(initialURL);
  }
Initializes the current router instance and sets up the change handling
event listeners used by the instances `location` implementation.

A property named `initialURL` will be used to determine the initial URL.
If no value is found `/` will be used.

@method startRouting
@private