Add init hook as a way to effectively monkey patch constructors

Related to #246
This commit is contained in:
Toby Zerner
2015-09-08 10:27:02 +09:30
parent 1aaff46f8e
commit e8621636c5
6 changed files with 23 additions and 13 deletions

View File

@ -16,7 +16,7 @@ export default class SettingsPage extends UserPage {
constructor(...args) {
super(...args);
this.init(app.session.user);
this.show(app.session.user);
app.setTitle(app.trans('core.settings'));
}