mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
@ -723,7 +723,7 @@ export class NavControllerBase extends Ion implements NavController {
|
||||
|
||||
if (transition.isRoot()) {
|
||||
// this is the root transition
|
||||
// it's save to destroy this transition
|
||||
// it's safe to destroy this transition
|
||||
this._trnsCtrl.destroy(transition.trnsId);
|
||||
|
||||
// it's safe to enable the app again
|
||||
@ -909,13 +909,10 @@ export class NavControllerBase extends Ion implements NavController {
|
||||
view._destroy(this._renderer);
|
||||
}
|
||||
|
||||
// purge stack
|
||||
this._views.length = 0;
|
||||
|
||||
// release swipe back gesture and transition
|
||||
this._sbGesture && this._sbGesture.destroy();
|
||||
this._sbTrns && this._sbTrns.destroy();
|
||||
this._sbGesture = this._sbTrns = null;
|
||||
this._queue = this._views = this._sbGesture = this._sbTrns = null;
|
||||
|
||||
// Unregister navcontroller
|
||||
if (this.parent && this.parent.unregisterChildNav) {
|
||||
|
@ -523,7 +523,7 @@ export class ViewController {
|
||||
this._cmp.destroy();
|
||||
}
|
||||
|
||||
this._nav = this._cmp = this.instance = this._cntDir = this._cntRef = this._hdrDir = this._ftrDir = this._nb = this._onDidDismiss = this._onWillDismiss = null;
|
||||
this._nav = this._cmp = this.instance = this._cntDir = this._cntRef = this._leavingOpts = this._hdrDir = this._ftrDir = this._nb = this._onDidDismiss = this._onWillDismiss = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user