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
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. TheonceOnly
option allows the leave callback to be executed only once before automatically unbinding the event.Changes
onceOnly
option to leave events default optionsonceOnly
setting similar to arrive eventsfalse
to maintain backward compatibilityExample Usage