Closed cpojer closed 8 years ago
You can find a modern one that works on current slick here
https://github.com/lovelyscalabledrawings/slick/blob/master/Source/Slick.Finder.js
I tried to merge it back, even made two pull requests. The tests were all green, but i didnt have the time to check back with Fabio.
My approach was to use third argument Slick.matchNode(li, 'ul > li', ul)
, you can read about it in a neighbor issue
Repost from mootools lighthouse:
https://mootools.lighthouseapp.com/projects/2706/tickets/947-faster-complex-selector-matching
Currently in Slick you're doing a brute force search of the document to find if the element matches the selector, this can be very slow. By leveraging the Slick parser's reverse function, we can speed this up quite a bit.
It's actually not quite as fast as some previous code I submitted(#574), but that no longer works with Slick.