* Destroy named window, focus mini or main window after * @param {string} name window
(name)
| 515 | * @param {string} name window |
| 516 | */ |
| 517 | destroyAndFocus (name) { |
| 518 | this.win[name] = null |
| 519 | if ( this.isValid('main') ) { |
| 520 | if ( !this.isVisible('main') && this.isValid('mini') && this.isVisible('mini') ) { |
| 521 | this.win.mini.focus() |
| 522 | } else { |
| 523 | this.win.main.focus() |
| 524 | } |
| 525 | } |
| 526 | } |
| 527 | |
| 528 | destroyAndFocusMulti () { |
| 529 | this.multiWin = this.multiWin.filter((x) => !x.isDestroyed()) |
no test coverage detected