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

normaliseRoot optimisation #104

Closed
eugene-eeo opened this issue Jan 24, 2016 · 0 comments
Closed

normaliseRoot optimisation #104

eugene-eeo opened this issue Jan 24, 2016 · 0 comments

Comments

@eugene-eeo
Copy link

When normalising a selector-root (line 62) it can essentially be reduced to:

document.querySelector(root)

Which has the added benefit of not needing to throw away N-1 matched elements, allocate an Array/NodeList, etc.

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

No branches or pull requests

1 participant