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 {
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 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments