()
| 197 | root.addEventListener('focus', onFocus, true); |
| 198 | |
| 199 | let cleanup = () => { |
| 200 | cancelAnimationFrame(raf); |
| 201 | root.removeEventListener('blur', onBlur, true); |
| 202 | root.removeEventListener('focusout', onFocusOut, true); |
| 203 | root.removeEventListener('focusin', onFocusIn, true); |
| 204 | root.removeEventListener('focus', onFocus, true); |
| 205 | ignoreFocusEvent = false; |
| 206 | isRefocusing = false; |
| 207 | }; |
| 208 | |
| 209 | let raf = requestAnimationFrame(cleanup); |
| 210 | return cleanup; |
no test coverage detected