Change ()=>{} into ()=>0

This commit is contained in:
djmaze 2021-08-13 09:58:43 +02:00
parent 2d87b52c07
commit d536b5eeee
10 changed files with 21 additions and 23 deletions

View file

@ -44,7 +44,7 @@ export class AbstractScreen {
const routes = this.routes();
if (arrayLength(routes)) {
let route = new Crossroads(),
fMatcher = (this.onRoute || (()=>{})).bind(this);
fMatcher = (this.onRoute || (()=>0)).bind(this);
routes.forEach(item => item && route && (route.addRoute(item[0], fMatcher).rules = item[1]));