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

fix: only call init functions of objects once #416

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

straker
Copy link
Owner

@straker straker commented Oct 25, 2024

Add new option to events.on to allow removing the event after the first emit. I originally had a separate once function for this, but decided it added more space to the library than just reusing the on function.

Closes #414

@straker straker changed the title Memory leak fix: only call init functions of objects once Oct 25, 2024
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.

"init" callbacks cause memory leak
1 participant