Skip to content

Instantly share code, notes, and snippets.

@lcmen
lcmen / controller.js
Last active June 27, 2017 11:28
[Backbone: base Marionette controller] Base controller that I use in my marionette.js applications. #tags: backbone.js
Controller.Base = function() {
function Controller(options) {
options = options || {};
this.region = options.region;
Marionette.Controller.call(this, options);
}
Controller.extend = Marionette.Controller.extend;
_.extend(Controller.prototype, Marionette.Controller.prototype);