Merge pull request #3258 from NoelDeMartin/MOBILE-3833

MOBILE-3833: Clean up swipe managers
main
Pau Ferrer Ocaña 2022-04-21 09:45:40 +02:00 committed by GitHub
commit e38992b786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -324,6 +324,7 @@ export class AddonCalendarCalendarComponent implements OnInit, DoCheck, OnDestro
*/
ngOnDestroy(): void {
this.undeleteEventObserver?.off();
this.manager?.destroy();
this.managerUnsubscribe && this.managerUnsubscribe();
}

View File

@ -452,6 +452,7 @@ export class AddonCalendarDayPage implements OnInit, OnDestroy {
this.manualSyncObserver?.off();
this.onlineObserver?.unsubscribe();
this.filterChangedObserver?.off();
this.manager?.destroy();
this.managerUnsubscribe && this.managerUnsubscribe();
}

View File

@ -315,6 +315,7 @@ export class AddonModBookContentsPage implements OnInit, OnDestroy {
*/
ngOnDestroy(): void {
this.managerUnsubscribe && this.managerUnsubscribe();
this.manager?.destroy();
}
}