examples/map/js/backbone.marionette.js
function(handlers){
      _.each(handlers, function(handler, name){
        var context = null;

        if (_.isObject(handler) && !_.isFunction(handler)){
          context = handler.context;
          handler = handler.callback;
        }

        this.setHandler(name, handler, context);
      }, this);
    }
function(handlers){
      _.each(handlers, function(handler, name){
        var context = null;

        if (_.isObject(handler) && !_.isFunction(handler)){
          context = handler.context;
          handler = handler.callback;
        }

        this.setHandler(name, handler, context);
      }, this);
    }
function ( handlers ) { _ . each ( handlers , function ( handler , name ) { var context = null ; if ( _ . isObject ( handler ) && ! _ . isFunction ( handler ) ) { context = handler . context ; handler = handler . callback ; } this . setHandler ( name , handler , context ) ; } , this ) ; }
Add multiple handlers using an object literal configuration
Add multiple handlers using an object literal configuration