1 module.exports = BaseController;
3 var m = require('mithril');
5 BaseController.prototype.selectUuid =
6 function selectUuid(uuid) {
7 m.route('/show/' + uuid);
9 BaseController.prototype.onunload =
12 if (this.controllers instanceof Function) {
13 todo = this.controllers();
14 } else if (this.controllers instanceof Array) {
15 todo = this.controllers;
17 todo.map(function(ctrl) {
18 if (ctrl.onunload instanceof Function)
22 function BaseController(vm) {