import {Module} from '../Module.js';
import {Module} from '../Module.js';
depends: Kronicle.Module This class is used to handle events from users and dispatch the proper response via view and model. The constructor takes an args object which contains the following properties:
export class Controller extends Module {
constructor (args = {model: {}, view: {}, name: ''}) {
this.model = args.model;
this.view = args.view;
this.initialize = args.initialize || super.initialize;
this.initialize = this.initialize.bind(this);
super({name: args.name + 'Controller'});
}
}