mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
small Knockout cleanup
This commit is contained in:
committed by
Steve Sanderson
parent
fc398d602a
commit
c2a284d5b8
@@ -43,8 +43,7 @@ export class Router {
|
||||
$(document).on('click', 'a', this.clickEventListener);
|
||||
|
||||
// Initialize Crossroads with starting location
|
||||
// Need to cast history to 'any' because @types/history is out-of-date
|
||||
crossroads.parse((history as any).location.pathname);
|
||||
crossroads.parse(history.location.pathname);
|
||||
}
|
||||
|
||||
public link(url: string): string {
|
||||
|
||||
Reference in New Issue
Block a user