front/general: replace manual DI with require(...)

This commit is contained in:
rr-
2016-04-01 00:20:34 +02:00
parent 7e26fc87ce
commit 36ffa5b4e7
13 changed files with 112 additions and 153 deletions

View File

@ -1,13 +1,11 @@
'use strict';
class CommentsController {
constructor(topNavigationController) {
this.topNavigationController = topNavigationController;
}
const topNavController = require('../controllers/top_nav_controller.js');
class CommentsController {
listCommentsRoute() {
this.topNavigationController.activate('comments');
topNavController.activate('comments');
}
}
module.exports = CommentsController;
module.exports = new CommentsController();