UNPKG
generator-neonode
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Yeoman generator to scaffold a Neonode Fullstack MVC Application
Empathia/neonode
generator-neonode
/
generators
/
core
/
templates
/
controllers
/
BaseController.js
13 lines
(10 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
BaseController = Class(
'BaseController'
).includes(CustomEventSupport)({ beforeActions : [], prototype : {
init
: function (config){
this
.name =
this
.
constructor
.className.replace(
'Controller'
,
''
);
return
this
; } } }); module.exports = BaseController;