We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfdddff commit 5a7998aCopy full SHA for 5a7998a
modules/createRouter.js
@@ -423,7 +423,7 @@ function createRouter(options) {
423
424
if (!(location instanceof StaticLocation)) {
425
if (location.addChangeListener)
426
- location.addChangeListener(Router.handleLocationChange);
+ location.addChangeListener(Router.handleLocationChange.bind(Router));
427
428
this.isRunning = true;
429
}
@@ -440,7 +440,7 @@ function createRouter(options) {
440
this.cancelPendingTransition();
441
442
if (location.removeChangeListener)
443
- location.removeChangeListener(Router.handleLocationChange);
+ location.removeChangeListener(Router.handleLocationChange.bind(Router));
444
445
this.isRunning = false;
446
},
0 commit comments