Skip to content

Commit cbf4193

Browse files
committed
Updated to v23 by adding main function to controller
1 parent 5900a21 commit cbf4193

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

js/controller.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Controller class to be subclassed by an actual controller
1+
/* eslint-disable class-methods-use-this */
22

33
import { Tooltip } from 'bootstrap';
44
import View from './view';
@@ -71,4 +71,12 @@ export default class Controller {
7171
}
7272
throw new Error(`Controller: Class ${C.name} is not a controller`);
7373
}
74+
75+
/**
76+
* Run your application. This function does nothing in the default implementation
77+
* and you are expected to subclass it.
78+
*/
79+
main() {
80+
81+
}
7482
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@djthorpe/js-framework",
3-
"version": "0.0.22",
3+
"version": "0.0.23",
44
"description": "Javascript Framework",
55
"main": "dist/js/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)