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 });