From de46e1082490629f482e916f02a7da67ba64709d Mon Sep 17 00:00:00 2001 From: PS Date: Wed, 6 Nov 2024 07:42:40 +0100 Subject: [PATCH] registerPersistentEvent --- packages/core/src/event/Observable.ts | 2 +- packages/core/src/event/__tests__/ObservableSpec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/event/Observable.ts b/packages/core/src/event/Observable.ts index dde31db4d..cdb9aa5b0 100644 --- a/packages/core/src/event/Observable.ts +++ b/packages/core/src/event/Observable.ts @@ -43,7 +43,7 @@ export class Observable { this._persistentEvents.clear(); } - unregisterPageReset(event: keyof DispatcherEventsMap | string) { + registerPersistenEvent(event: keyof DispatcherEventsMap | string) { this._persistentEvents.add(event); } diff --git a/packages/core/src/event/__tests__/ObservableSpec.ts b/packages/core/src/event/__tests__/ObservableSpec.ts index 80d5894d3..669331179 100644 --- a/packages/core/src/event/__tests__/ObservableSpec.ts +++ b/packages/core/src/event/__tests__/ObservableSpec.ts @@ -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 });