Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make AnimatedSprite event functions optional#6906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bigtimebuddy merged 1 commit intopixijs:devfromdranitski:patch-1
Sep 27, 2020
Merged

Make AnimatedSprite event functions optional#6906

bigtimebuddy merged 1 commit intopixijs:devfromdranitski:patch-1
Sep 27, 2020

Conversation

dranitski
Copy link
Contributor

this.animation.onComplete = undefined;
that line gives me an error in typescript
Type 'undefined' is not assignable to type '(...params: any[]) => any'.ts(2322)

EvenAnimatedSprite.destroy() function sets these tonull, so why can't I ?

public destroy(options: IDestroyOptions|boolean): void    {        this.stop();        super.destroy(options);        this.onComplete = null;        this.onFrameChange = null;        this.onLoop = null;    }
Description of change
Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Documentation is changed or added
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

```this.animation.onComplete = undefined;```that gives me an error in typescript```Type 'undefined' is not assignable to type '(...params: any[]) => any'.ts(2322)```Even `AnimatedSprite.destroy()` function sets these to `null`, so why can't I ?```public destroy(options: IDestroyOptions|boolean): void    {        this.stop();        super.destroy(options);        this.onComplete = null;        this.onFrameChange = null;        this.onLoop = null;    }```
@bigtimebuddybigtimebuddy added the ✅ Ready To MergeHelpful when issues are in the queue waiting to get merged. This means the PR is completed and has t labelSep 25, 2020
@bigtimebuddybigtimebuddy merged commit19d7cba intopixijs:devSep 27, 2020
@bigtimebuddy
Copy link
Member

Thank you@dranitski

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ivanpopelyshevivanpopelyshevivanpopelyshev approved these changes

@themoonratthemoonratthemoonrat approved these changes

Assignees
No one assigned
Labels
✅ Ready To MergeHelpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@dranitski@bigtimebuddy@ivanpopelyshev@themoonrat

[8]ページ先頭

©2009-2025 Movatter.jp