jQuery 1.4.x's Greatest Hits: Earle's Picks

Notice: This is a discussion thread for comments about the SitePoint article, jQuery 1.4.x’s Greatest Hits: Earle’s Picks.


For those of you who’ve had a change to play with 1.4, what’s your favourite new feature?

While I am not experienced enough to comment on code writing so much, I can tell you that I have seen better performance, and that our programming team has found it easy to update from the previous version to 1.4, so we like it so far, and I hope to get into some of the more powerful new features moving forward.

I can’t name just one, so I will name several:

  • using closure functions in .css(), .append() and .html().
  • .nextUntil(), .prevUntil() and .parentsUntil() (awesome)
  • it just seems a bit faster than 1.3 when processing extremely complicated/ long scripts (can we call that a feature?)

Does SitePoints jQuery book cover 1.4, or 1.3?

I’ve been looking at 1.4 for a week or two, but this just inspires me! I’ve a couple of pet projects I’m thinking over, and the idea of no more whacky weirdness in scope land fills me with joy.

I cannot express with enough conviction what a fantastic write up this is

Much thanks!

  • Stephen

@USPatriot: 1.4 was under development as we were working on the book. We made efforts to include as much new 1.4 functionality as possible where appropriate. On the other hand, some features in the 1.4 branch (like delegate), were added in 1.4.2 which was released after the book was published.

One year later, jquery officially released today version 1.4. In fact, today is also the fourth anniversary of the release jquery, jquery first wish a happy birthday.

<snip/>

Thanks for the info Louis, just picked up a book from Amazon today. Looking forward to the read.

jQuery 1.4 also provides a new “proxy” method, which takes a function and returns a new one with a particular scope. What does that mean? Well in JavaScript, it can be kind tricky to keep track of what the variable “this” contains. Sometime’s you’d like it to be the current object, and other times you want it to refer to some other object. jQuery.proxy() helps you
<snip>
[URL=“http://www.tactichost.com”]