(ev?: Event)
| 34 | }; |
| 35 | |
| 36 | const onTransitionEnd = (ev?: Event) => { |
| 37 | if (ev === undefined || el === ev.target) { |
| 38 | unregister(); |
| 39 | callback(ev as TransitionEvent); |
| 40 | } |
| 41 | }; |
| 42 | |
| 43 | if (el) { |
| 44 | el.addEventListener('webkitTransitionEnd', onTransitionEnd, opts); |
nothing calls this directly
no test coverage detected