* Does win have a full Custom Elements registry? * * @param {!Window} win * @return {boolean}
(win)
| 64 | * @return {boolean} |
| 65 | */ |
| 66 | function hasCustomElements(win) { |
| 67 | const {customElements} = win; |
| 68 | |
| 69 | return !!( |
| 70 | customElements && |
| 71 | customElements.define && |
| 72 | customElements.get && |
| 73 | customElements.whenDefined |
| 74 | ); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Was HTMLElement already patched for this window? |