Updated to marionette 4

This commit is contained in:
Jamie Curnow
2018-08-13 21:11:21 +10:00
parent 065727fba2
commit 0bb65e4c3c
4 changed files with 19 additions and 40 deletions

View File

@ -73,25 +73,6 @@ const App = Mn.Application.extend({
}
},
Error: function (code, message, debug) {
let temp = Error.call(this, message);
temp.name = this.name = 'AppError';
this.stack = temp.stack;
this.message = temp.message;
this.code = code;
this.debug = debug;
},
showError: function () {
let ErrorView = Mn.View.extend({
tagName: 'section',
id: 'error',
template: _.template(i18n('main', 'unknown-error'))
});
this.getRegion().show(new ErrorView());
},
getParam: function (name) {
name = name.replace(/[\[\]]/g, '\\$&');
let url = window.location.href;