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

Add onceOnly option for leave events #89

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Add onceOnly option for leave events #89

merged 1 commit into from
Nov 26, 2024

Conversation

uzairfarooq
Copy link
Owner

Add onceOnly option support for leave events

Description

This PR adds support for the onceOnly option to leave events, making the behavior consistent with arrive events. The onceOnly option allows the leave callback to be executed only once before automatically unbinding the event.

Changes

  • Added onceOnly option to leave events default options
  • Leave events now respect the onceOnly setting similar to arrive events
  • Default value is false to maintain backward compatibility

Example Usage

@uzairfarooq uzairfarooq self-assigned this Nov 26, 2024
@uzairfarooq uzairfarooq merged commit e6cfed5 into master Nov 26, 2024
@uzairfarooq uzairfarooq deleted the leave-onceOnly branch November 26, 2024 15:14
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.

1 participant