({
target
})
| 257 | const emulatedDuration = getTransitionDurationFromElement(transitionElement) + durationPadding; |
| 258 | let called = false; |
| 259 | const handler = ({ |
| 260 | target |
| 261 | }) => { |
| 262 | if (target !== transitionElement) { |
| 263 | return; |
| 264 | } |
| 265 | called = true; |
| 266 | transitionElement.removeEventListener(TRANSITION_END, handler); |
| 267 | execute(callback); |
| 268 | }; |
| 269 | transitionElement.addEventListener(TRANSITION_END, handler); |
| 270 | setTimeout(() => { |
| 271 | if (!called) { |