Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceHandler type fix (constructor parameters) #6063

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

kpal81xd
Copy link
Contributor

  • Fixes mismatched constructor types of child and parent classes for ResourceHandler which caused linting errors.

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@kpal81xd kpal81xd self-assigned this Feb 19, 2024
@kpal81xd kpal81xd added the bug label Feb 19, 2024
@kpal81xd kpal81xd merged commit f6cc135 into main Feb 19, 2024
7 checks passed
@kpal81xd kpal81xd deleted the resource-handler-fix branch February 19, 2024 12:47
Comment on lines +16 to +17
super(app);
this.handlerType = 'animclip';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not make the super constructor accept two parameters: app, and the handlerType?
so that this would be super(app, 'animclip');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that might have caused a constructor type clash but it apparently does not so Ive modified it with this change 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants