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

Refactor find/match algorithm #44

Open
bezborodow opened this issue May 31, 2023 · 0 comments
Open

Refactor find/match algorithm #44

bezborodow opened this issue May 31, 2023 · 0 comments

Comments

@bezborodow
Copy link
Collaborator

bezborodow commented May 31, 2023

While investigating #42, I noticed that our find/match algorithm could be improved by using closest.

For example:

const element = addedNode.closest(selector)
  || addedNode.querySelector(selector);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant