()
| 147 | } |
| 148 | |
| 149 | disconnectedCallback() { |
| 150 | for (const view of this.views) { |
| 151 | lifecycle(view.element!, LIFECYCLE_WILL_UNLOAD); |
| 152 | view._destroy(); |
| 153 | } |
| 154 | |
| 155 | // Release swipe back gesture and transition. |
| 156 | if (this.gesture) { |
| 157 | this.gesture.destroy(); |
| 158 | this.gesture = undefined; |
| 159 | } |
| 160 | this.transInstr.length = 0; |
| 161 | this.views.length = 0; |
| 162 | this.destroyed = true; |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * Push a new component onto the current navigation stack. Pass any additional |