Skip to content

fix listeners re-adding with share buttons update (2) #30

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

Merged
merged 2 commits into from
Sep 5, 2021

Conversation

tnga
Copy link
Contributor

@tnga tnga commented Sep 5, 2021

Previous added listeners to share buttons are re-added twice or multiple time when execute ShareButtons.update().
In browsers, if data-url or data-title or data-desc have been changed before calling ShareButtons.update(), the changes will not be considered because the previous added listeners with previous data value on share buttons will be executed on click event before the new added listeners after ShareButtons.update().
This pull request aims to fix that.

This is an adjustment regarding requested changes from this PR #28

@wcoder wcoder added this to the vNext milestone Sep 5, 2021
@wcoder wcoder merged commit fd020b4 into wcoder:master Sep 5, 2021
@wcoder wcoder modified the milestones: vNext, v1.8 Nov 21, 2021
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