examples/map/js/backbone.marionette.js
function(name, handler, context){
      var command = this.storage.getCommands(name);

      // loop through and execute all the stored command instances
      _.each(command.instances, function(args){
        handler.apply(context, args);
      });

      this.storage.clearCommands(name);
    }
function(name, handler, context){
      var command = this.storage.getCommands(name);

      // loop through and execute all the stored command instances
      _.each(command.instances, function(args){
        handler.apply(context, args);
      });

      this.storage.clearCommands(name);
    }
function ( name , handler , context ) { var command = this . storage . getCommands ( name ) ; // loop through and execute all the stored command instances _ . each ( command . instances , function ( args ) { handler . apply ( context , args ) ; } ) ; this . storage . clearCommands ( name ) ; }
Internal method to handle bulk execution of stored commands
Internal method to handle bulk execution of stored commands