Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Oct 24, 2023
1 parent e4a6bce commit 07294f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tiny-transition/src/core-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class TransitionManagerV2 {
private startTransition(value: boolean) {
if (!this.el) return;

this.asyncOp.dispose();
this.asyncOp.reset();
this.update(value ? "enterFrom" : "leaveFrom");

this.asyncOp.requestAnimationFrame(() => {
Expand Down Expand Up @@ -106,7 +106,7 @@ class AsyncOperation {
this.disposables.add(() => cancelAnimationFrame(id));
}

dispose() {
reset() {
this.disposables.forEach((f) => f());
this.disposables.clear();
}
Expand Down

0 comments on commit 07294f6

Please sign in to comment.