Skip to content

Commit c48d732

Browse files
committed
Updated esbuild config
1 parent 15e200c commit c48d732

File tree

3 files changed

+28
-2305
lines changed

3 files changed

+28
-2305
lines changed

js/controller.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ export default class Controller {
6363
/**
6464
* Create and return a new controller
6565
* @param {Controller} constructor - The constructor for the controller
66+
* @param {...any} args - The arguments for the constructor
6667
*/
67-
static New(constructor) {
68+
static New(constructor, ...args) {
6869
const C = constructor || Controller;
6970
if (C.prototype instanceof Controller) {
70-
return new C();
71+
return new C(args);
7172
}
7273
throw new Error(`Controller: Class ${C.name} is not a controller`);
7374
}

0 commit comments

Comments
 (0)