MOBILE-3833 core: Clean up swipe managers
parent
63bc43ceb4
commit
f6f876cf3f
|
@ -324,6 +324,7 @@ export class AddonCalendarCalendarComponent implements OnInit, DoCheck, OnDestro
|
|||
*/
|
||||
ngOnDestroy(): void {
|
||||
this.undeleteEventObserver?.off();
|
||||
this.manager?.destroy();
|
||||
this.managerUnsubscribe && this.managerUnsubscribe();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -315,6 +315,7 @@ export class AddonModBookContentsPage implements OnInit, OnDestroy {
|
|||
*/
|
||||
ngOnDestroy(): void {
|
||||
this.managerUnsubscribe && this.managerUnsubscribe();
|
||||
this.manager?.destroy();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue