* Called when the component is mounted.
()
| 126 | * Called when the component is mounted. |
| 127 | */ |
| 128 | function mount(): void { |
| 129 | on( EVENT_REFRESH, destroy ); |
| 130 | on( EVENT_REFRESH, setup ); |
| 131 | on( EVENT_UPDATED, update ); |
| 132 | |
| 133 | bind( document, `${ POINTER_DOWN_EVENTS } keydown`, e => { |
| 134 | isUsingKey = e.type === 'keydown'; |
| 135 | }, { capture: true } ); |
| 136 | |
| 137 | bind( root, 'focusin', () => { |
| 138 | toggleClass( root, CLASS_FOCUS_IN, !! isUsingKey ); |
| 139 | } ); |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Destroys the component. |
nothing calls this directly
no test coverage detected
searching dependent graphs…