diff options
| author | rr- | 2016-05-20 21:35:12 +0200 |
|---|---|---|
| committer | rr- | 2016-05-21 00:08:43 +0200 |
| commit | 69fe8ec31a0827eda913e55ca464228168ffcaf1 (patch) | |
| tree | 037608c4a0496e7064b0068314abae96c38dd7ba /client/js/controllers/help_controller.js | |
| parent | c88dfd228ac6feedd44fd82330b9899db863a190 (diff) | |
client/general: refactor all the things
- Move controls to the "controls/" directory
- Make controls interface look similar to each other
- Prefix "private" methods and attributes with underscore
Diffstat (limited to 'client/js/controllers/help_controller.js')
| -rw-r--r-- | client/js/controllers/help_controller.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/js/controllers/help_controller.js b/client/js/controllers/help_controller.js index 797d2ac..6c352c3 100644 --- a/client/js/controllers/help_controller.js +++ b/client/js/controllers/help_controller.js @@ -6,24 +6,24 @@ const HelpView = require('../views/help_view.js'); class HelpController { constructor() { - this.helpView = new HelpView(); + this._helpView = new HelpView(); } registerRoutes() { - page('/help', () => { this.showHelpRoute(); }); + page('/help', () => { this._showHelpRoute(); }); page( '/help/:section', - (ctx, next) => { this.showHelpRoute(ctx.params.section); }); + (ctx, next) => { this._showHelpRoute(ctx.params.section); }); page( '/help/:section/:subsection', (ctx, next) => { - this.showHelpRoute(ctx.params.section, ctx.params.subsection); + this._showHelpRoute(ctx.params.section, ctx.params.subsection); }); } - showHelpRoute(section, subsection) { + _showHelpRoute(section, subsection) { topNavController.activate('help'); - this.helpView.render({ + this._helpView.render({ section: section, subsection: subsection, }); |