examples/map/js/backbone.marionette.js
function(controller, appRoutes) {
    if (!appRoutes){ return; }

    var routeNames = _.keys(appRoutes).reverse(); // Backbone requires reverted order of routes

    _.each(routeNames, function(route) {
      this._addAppRoute(controller, route, appRoutes[route]);
    }, this);
  }
function(controller, appRoutes) {
    if (!appRoutes){ return; }

    var routeNames = _.keys(appRoutes).reverse(); // Backbone requires reverted order of routes

    _.each(routeNames, function(route) {
      this._addAppRoute(controller, route, appRoutes[route]);
    }, this);
  }
function ( controller , appRoutes ) { if ( ! appRoutes ) { return ; } var routeNames = _ . keys ( appRoutes ) . reverse ( ) ; // Backbone requires reverted order of routes _ . each ( routeNames , function ( route ) { this . _addAppRoute ( controller , route , appRoutes [ route ] ) ; } , this ) ; }
Internal method to process the `appRoutes` for the router, and turn them in to routes that trigger the specified method on the specified `controller`.
Internal method to process the appRoutes for the router and turn them in to routes that trigger the specified method on the specified controller .