Skip to content

Commit 436c646

Browse files
committed
Updated controller
1 parent c48d732 commit 436c646

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

js/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class Controller {
6868
static New(constructor, ...args) {
6969
const C = constructor || Controller;
7070
if (C.prototype instanceof Controller) {
71-
return new C(args);
71+
return new C(...args);
7272
}
7373
throw new Error(`Controller: Class ${C.name} is not a controller`);
7474
}

js/nav.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default class Nav extends View {
6464
} else {
6565
const navLink = new URL(node.href).pathname.pathSplit().join('/');
6666
if (node.parentNode.id) {
67+
console.log(`set ${navLink}`);
6768
this.$map.set(navLink, node.parentNode.id);
6869
}
6970
}

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.35",
3+
"version": "0.0.36",
44
"description": "Javascript Framework",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)