Skip to content

Commit 2a6b36a

Browse files
committed
Update router constructor API
1 parent e7120e3 commit 2a6b36a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

js/ui/core.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ class Router extends EventTarget {
419419
/** @param {!RouteEvent} e */
420420
handleFail(e) {
421421
this.dispatchEvent(e);
422-
const target = /** @type {!Route} */(e.target);
423422
this.unlistenRoute();
424423
}
425424

@@ -746,7 +745,7 @@ class App extends Component {
746745
this.registerDisposable(this.kbd_);
747746

748747
/** @const @private @type {!Router} */
749-
var router = this.router_ = new Router(this, this.history_);
748+
var router = this.router_ = new Router(this);
750749
this.registerDisposable(router);
751750
}
752751

0 commit comments

Comments
 (0)