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

After timeout, if el has already been unbound, do not attach event-listener #144

Merged
merged 1 commit into from
Nov 11, 2019

Conversation

francescozaniol
Copy link
Collaborator

This check prevents possible memory leaks for detached elements. This case could happen with async data, when the unbind function runs before the timeout.

Copy link
Owner

@ndelvalle ndelvalle left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@ndelvalle ndelvalle merged commit d47e677 into ndelvalle:v3 Nov 11, 2019
ndelvalle added a commit that referenced this pull request Nov 11, 2019
)

* Remove el argument from callback handler and update prittier rules

* After timeout, if el has already been unbound, do not attach event-listener (#144)
@ndelvalle
Copy link
Owner

@francescozaniol v-click-outside 3.0.0 published with your changes on it. Thanks for the contribution!

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.

2 participants