(parent: HTMLElement)
| 60 | ) {} |
| 61 | |
| 62 | attach(parent: HTMLElement): void { |
| 63 | this._preview = this._createPreview(); |
| 64 | parent.appendChild(this._preview); |
| 65 | |
| 66 | // The null check is necessary for browsers that don't support the popover API. |
| 67 | // Note that we use a string access for compatibility with Closure. |
| 68 | if (supportsPopover(this._preview)) { |
| 69 | this._preview['showPopover'](); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | destroy(): void { |
| 74 | this._preview.remove(); |
nothing calls this directly
no test coverage detected