File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default class Controller {
68
68
static New ( constructor , ...args ) {
69
69
const C = constructor || Controller ;
70
70
if ( C . prototype instanceof Controller ) {
71
- return new C ( args ) ;
71
+ return new C ( ... args ) ;
72
72
}
73
73
throw new Error ( `Controller: Class ${ C . name } is not a controller` ) ;
74
74
}
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export default class Nav extends View {
64
64
} else {
65
65
const navLink = new URL ( node . href ) . pathname . pathSplit ( ) . join ( '/' ) ;
66
66
if ( node . parentNode . id ) {
67
+ console . log ( `set ${ navLink } ` ) ;
67
68
this . $map . set ( navLink , node . parentNode . id ) ;
68
69
}
69
70
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @djthorpe/js-framework" ,
3
- "version" : " 0.0.35 " ,
3
+ "version" : " 0.0.36 " ,
4
4
"description" : " Javascript Framework" ,
5
5
"main" : " dist/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments