()
| 672 | typeof this._focusedElementBeforeOpen.focus === 'function'; |
| 673 | |
| 674 | const completeClose = () => { |
| 675 | // The `_opened` could've been reset already if |
| 676 | // we got two events in quick succession. |
| 677 | if (this._opened) { |
| 678 | this._opened = false; |
| 679 | this.closedStream.emit(); |
| 680 | } |
| 681 | }; |
| 682 | |
| 683 | if (this._componentRef) { |
| 684 | const {instance, location} = this._componentRef; |