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

Only register one click listener #292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fru
Copy link

@fru fru commented May 30, 2016

Hey,

this is the fix for a bug I had, on mobile devices, where I needed to register a lot of swipebox instances on a single page. The swipebox would open really slowly because there were many click listerners on $(document) at the same time. Alternatively if a single click listeners is not wanted, please consider removing the listerner on destroy.

Thank you,
Florian Rüberg

This is the fix for a bug I had on mobile devices, where I needed to register a lot of swipebox instances on a single Page. The swipebox would start to open slower and slower because there were many click listerners on $(document) at the same time. Alternatively if a single click listeners is not wanted, please consider removing the listerner on destroy.
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