O'Reilly logo
  • Pasha Craydon thinks this is interesting:

var App = new Marionette.Application(); App.commands.setHandler("deleteLocalStorage", function(){ // code todelete the local storage of the application }); App.execute("deleteLocalStorage");

From

Cover of Getting Started with Backbone Marionette

Note

example of Marionette commands