Skip to content

Commit

Permalink
Avoid creating new object
Browse files Browse the repository at this point in the history
  • Loading branch information
s207152 authored Nov 21, 2024
1 parent 1509e45 commit 9fe4691
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/dev/core/src/Animations/animationGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,10 +920,7 @@ export class AnimationGroup implements IDisposable {
if (!skipOnAnimationEnd) {
this.onAnimationGroupEndObservable.notifyObservers(this);
}
if (this._animatables.length > 0) {
// explicitly clear pending animatables when mask is applied
this._animatables = [];
}
this._animatables.length = 0;
}
}

Expand Down

0 comments on commit 9fe4691

Please sign in to comment.