(el: HTMLElement)
| 98 | * so plain anchors still work. |
| 99 | */ |
| 100 | const isInActivePage = (el: HTMLElement): boolean => { |
| 101 | const page = el.closest<HTMLElement>('.ion-page'); |
| 102 | if (page === null) { |
| 103 | return document.querySelector('.ion-page') === null; |
| 104 | } |
| 105 | return page.closest('.ion-page-hidden, .tab-hidden') === null; |
| 106 | }; |
| 107 | |
| 108 | /** |
| 109 | * Polls across animation frames for an element matching `fragment` that lives |
no outgoing calls
no test coverage detected