()
| 191 | root.addEventListener('focus', onFocus, true); |
| 192 | |
| 193 | let cleanup = () => { |
| 194 | cancelAnimationFrame(raf); |
| 195 | root.removeEventListener('blur', onBlur, true); |
| 196 | root.removeEventListener('focusout', onFocusOut, true); |
| 197 | root.removeEventListener('focusin', onFocusIn, true); |
| 198 | root.removeEventListener('focus', onFocus, true); |
| 199 | ignoreFocusEvent = false; |
| 200 | isRefocusing = false; |
| 201 | }; |
| 202 | |
| 203 | let raf = requestAnimationFrame(cleanup); |
| 204 | return cleanup; |
no test coverage detected