small Knockout cleanup
This commit is contained in:
parent
fc398d602a
commit
c2a284d5b8
|
|
@ -43,8 +43,7 @@ export class Router {
|
||||||
$(document).on('click', 'a', this.clickEventListener);
|
$(document).on('click', 'a', this.clickEventListener);
|
||||||
|
|
||||||
// Initialize Crossroads with starting location
|
// Initialize Crossroads with starting location
|
||||||
// Need to cast history to 'any' because @types/history is out-of-date
|
crossroads.parse(history.location.pathname);
|
||||||
crossroads.parse((history as any).location.pathname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public link(url: string): string {
|
public link(url: string): string {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue