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

Prevent duplicate scroll gap selectors being added #14

Merged
merged 1 commit into from Mar 24, 2020

Conversation

Paul-Hebert
Copy link
Contributor

It's possible to add the same selector multiple times.
This can lead to perf slowdowns as DOM operations run on each selector
By preventing duplicate selectors we can avoid this

This commit also adds a test to confirm this works.

Fixes #13

It's possible to add the same selector multiple times.
This can lead to perf slowdowns as DOM operations run on each selector
By preventing duplicate selectors we can avoid this

This commit also adds a test to confirm this works.
@FL3NKEY
Copy link
Owner

FL3NKEY commented Mar 24, 2020

thanks for caring ;)

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.

Should addFillGapSelector check if a selector is already present?
2 participants