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

Make Placeholder.init() static, remove main.start #43

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

mbland
Copy link
Owner

@mbland mbland commented Dec 15, 2023

After thinking about it, it doesn't make sense to instantiate a component object with on internal state to invoke what could be a static method. If a componenent needed to create a stateful object to manage interactions, its static init() could take care of that.

Also removes the start() function from main.js, which should've been removed in commit 366d9bc from #41.

After thinking about it, it doesn't make sense to instantiate a
component object with on internal state to invoke what could be a static
method. If a componenent needed to create a stateful object to manage
interactions, its static init() could take care of that.

Also removes the start() function from main.js, which should've been
removed in commit 366d9bc from #41.
@mbland mbland self-assigned this Dec 15, 2023
@mbland mbland merged commit 3063291 into main Dec 15, 2023
3 checks passed
@mbland mbland deleted the make-component-classes-static branch December 15, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant