lib/router.js
function() {
      if (!this.routes) { 
        return;
      }
      var routes = [];
      for (var route in this.routes) {
        if (this.routes.hasOwnProperty(route)) {
          routes.unshift([route, this.routes[route]]);
        }
      }
      for (var i = 0, l = routes.length; i < l; i++) {
        this.route(routes[i][0], routes[i][1], this[routes[i][1]]);
      }
    }
function() {
      if (!this.routes) { 
        return;
      }
      var routes = [];
      for (var route in this.routes) {
        if (this.routes.hasOwnProperty(route)) {
          routes.unshift([route, this.routes[route]]);
        }
      }
      for (var i = 0, l = routes.length; i < l; i++) {
        this.route(routes[i][0], routes[i][1], this[routes[i][1]]);
      }
    }
function ( ) { if ( ! this . routes ) { return ; } var routes = [ ] ; for ( var route in this . routes ) { if ( this . routes . hasOwnProperty ( route ) ) { routes . unshift ( [ route , this . routes [ route ] ] ) ; } } for ( var i = 0 , l = routes . length ; i < l ; i ++ ) { this . route ( routes [ i ] [ 0 ] , routes [ i ] [ 1 ] , this [ routes [ i ] [ 1 ] ] ) ; } }
Bind all defined routes to `Parse.history`. We have to reverse the order of the routes here to support behavior where the most general routes can be defined at the bottom of the route map.
Bind all defined routes to Parse . history . We have to reverse the order of the routes here to support behavior where the most general routes can be defined at the bottom of the route map .