
Upgrade Your Drupal Skills
We trained 1,000+ Drupal Developers over the last decade.
See Advanced Courses NAH, I know EnoughVOTE: A potentially major change to QueryPath.
Read on for the onger explanation.
Over the course of QueryPath's life, several people have requested that I change one major thing about QueryPath:
- In QueryPath 2, find() and related functions return THE SAME object, instead of following jQuery and returning A NEW object.
Based on some recent discussions, I decided to try changing this behavior for QueryPath 3.
- In the experimental version, each query method (find(), next(), top(), etc.) returns a NEW object.
- Or, to put it another way, find() now works like branch() used to work. All other methods work like that, too.
- branch() is still there for backward compatibility
- findInPlace() has been added. It acts like the old find().
Please try the experimental version and give me some feedback. Is this better or worse than the old QueryPath?
Let me know by September 8.
NOTES ON PERFORMANCE:
- This new version is about the same speed as QueryPath 3.x alpha 2.
- This new version will take up a little more memory, but not noticeably more in most cases.
NOTES ON GIT REPOSITORY CODE:
You can find this code in the branch named feature/find-v2 in GitHub. It's a branch off of 3.x. If people like this behavior, I will merge it into 3.x and it will be part of QueryPath 3.
About Drupal Sun
Drupal Sun is an Evolving Web project. It allows you to:
- Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
- Facet based on tags, author, or feed
- Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
- View the entire article text inline, or in the context of the site where it was created
See the blog post at Evolving Web