Revert "fix(router): navigating to the current location works (#19463)"

This reverts commit 43c5b638b9.
This commit is contained in:
Chuck Jazdzewski
2017-10-09 16:38:12 -07:00
parent d53b96f2a2
commit d7eac7ee56
3 changed files with 95 additions and 120 deletions

View File

@ -41,9 +41,7 @@ export class SpyLocation implements Location {
return currPath == givenPath + (query.length > 0 ? ('?' + query) : '');
}
simulateUrlPop(pathname: string) {
this._subject.emit({'url': pathname, 'pop': true, 'type': 'popstate'});
}
simulateUrlPop(pathname: string) { this._subject.emit({'url': pathname, 'pop': true}); }
simulateHashChange(pathname: string) {
// Because we don't prevent the native event, the browser will independently update the path