()
| 159 | } |
| 160 | |
| 161 | ngOnDestroy() { |
| 162 | if (this._menu && this._ownsMenu(this._menu)) { |
| 163 | PANELS_TO_TRIGGERS.delete(this._menu); |
| 164 | } |
| 165 | |
| 166 | this._pendingRemoval?.unsubscribe(); |
| 167 | this._menuCloseSubscription.unsubscribe(); |
| 168 | this._closingActionsSubscription.unsubscribe(); |
| 169 | |
| 170 | if (this._overlayRef) { |
| 171 | this._overlayRef.dispose(); |
| 172 | this._overlayRef = null; |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | /** Whether the menu is open. */ |
| 177 | get menuOpen(): boolean { |