Cleanup Crossroads & Hasher and dropped Signals

This commit is contained in:
djmaze 2021-02-04 12:54:03 +01:00
parent 32c3f1f059
commit b26586f2ba
8 changed files with 133 additions and 584 deletions

View file

@ -314,8 +314,7 @@ export function startScreens(screensClasses) {
const cross = new Crossroads();
cross.addRoute(/^([a-zA-Z0-9-]*)\/?(.*)$/, screenOnRoute);
hasher.initialized.add(cross.parse, cross);
hasher.changed.add(cross.parse, cross);
hasher.changed.add(cross.parse.bind(cross));
hasher.init();
setTimeout(() => $htmlCL.remove('rl-started-trigger'), 100);