all tests passing

fix-each-block-duplications
Rich Harris 3 months ago
parent 2cfbef476c
commit 3f0eac1a3d

@ -297,8 +297,8 @@ function animate(element, options, counterpart, t2, callback) {
fill: 'forwards'
});
// @ts-ignore
animation.onfinish = callback;
// we can't do `= callback` since the callback can change
animation.onfinish = () => callback?.();
} else {
// Timer
if (t1 === 0) {

Loading…
Cancel
Save