Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A partial rollback of the refactoring done in . It was causing …
…a 4-6% speed decrease on certain hierarchy selectors ( > + and ~ ) since it did an extra .toUpperCase() which wasn't required. The part left in was moving one of the .toUpperCase() calls to the var nodeName instead of having it in the loop. This appears to be giving a speed boost of a couple percent for those same hierarchy selectors.
- Loading branch information
Showing with 6 additions and 5 deletions.
- +6 −5 src/selector.js