Skip to content

Commit

Permalink
registerPersistentEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
PS committed Nov 6, 2024
1 parent 8fa0ea7 commit de46e10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/event/Observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class Observable {
this._persistentEvents.clear();
}

unregisterPageReset(event: keyof DispatcherEventsMap | string) {
registerPersistenEvent(event: keyof DispatcherEventsMap | string) {
this._persistentEvents.add(event);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/event/__tests__/ObservableSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ describe('ima.core.event.Observable', () => {
});

it('should reset only page events', () => {
observable.unregisterPageReset(event);
observable.registerPersistenEvent(event);
dispatcher.fire(event, eventData);
dispatcher.fire('foo', 'bar');
dispatcher.fire(RouterEvents.BEFORE_HANDLE_ROUTE, { bhr: true });
Expand Down

0 comments on commit de46e10

Please sign in to comment.