Skip to content

Commit be95061

Browse files
Remove duplicate animation cleanup logic
`_rebuildUnderlyingAnimation()` will handle the call to cancel the current animation (if one exists) as well as setting it to `null`. (Resubmitted from web-animations/web-animations-js#40)
1 parent e09edbf commit be95061

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/web-animations-next-animation.js

-2
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@
2828
this._holdTime = 0;
2929
this._paused = false;
3030
this._isGroup = false;
31-
this._animation = null;
3231
this._childAnimations = [];
3332
this._callback = null;
3433
this._oldPlayState = 'idle';
3534
this._rebuildUnderlyingAnimation();
3635
// Animations are constructed in the idle state.
37-
this._animation.cancel();
3836
this._updatePromises();
3937
};
4038

0 commit comments

Comments
 (0)