Skip to content

Commit

Permalink
fix: pop state listener context
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed May 23, 2022
1 parent 1b7e968 commit 8b735c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Micro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ export class Micro extends Component {
* Popstate listener.
* @param data Popstate data.
*/
protected _onPopState(data: PopStateData) {
return this.onPopState(data);
}
protected _onPopState = (data: PopStateData) => this.onPopState(data);

/**
* Handle popstate event from the router.
Expand Down

0 comments on commit 8b735c8

Please sign in to comment.