jQuery 1.1a Released

The jQuery 1.1a has been released today by the jQuery team! Its important to note that this is an alpha version before you go out and install it in a production environment, but the jQuery team asks that people give it a round of testing prior to the release this weekend.

The “Quick and Dirty” on v1.1:

  • Its selectors are 10-20x faster than those in jQuery 1.0.4.
  • The documentation has been completely revamped.
  • The complexity of the API has dropped by 47%.
  • It has a ton of bug fixes.
  • It has a bunch of great new features.
  • … and it’s still the small 19KB that you’ve come to expect.

With this release come a lot of API changes:

Firstly, :nth-child() now starts at 1, instead of 0.

A number of methods have been re-organized/re-named. Here’s the translation of old to new functions:

Old Way (1.0.x) New Way (1.1)
.ancestors() .parents()
.width() .css(”width”)
.height() .css(”height”)
.top() .css(”top”)
.left() .css(”left”)
.position() .css(”position”)
.float() .css(”float”)
.overflow() .css(”overflow”)
.color() .css(”color”)
.background() .css(”background”)
.id() .attr(”id”)
.title() .attr(”title”)
.name() .attr(”name”)
.href() .attr(”href”)
.src() .attr(”src”)
.rel() .attr(”rel”)
.oneblur(fn) .one(”blur”,fn)
.onefocus(fn) .one(”focus”,fn)
.oneload(fn) .one(”load”,fn)
.oneresize(fn) .one(”resize”,fn)
.onescroll(fn) .one(”scroll”,fn)
.oneunload(fn) .one(”unload”,fn)
.oneclick(fn) .one(”click”,fn)
.onedblclick(fn) .one(”dblclick”,fn)
.onemousedown(fn) .one(”mousedown”,fn)
.onemouseup(fn) .one(”mouseup”,fn)
.onemousemove(fn) .one(”mousemove”,fn)
.onemouseover(fn) .one(”mouseover”,fn)
.onemouseout(fn) .one(”mouseout”,fn)
.onechange(fn) .one(”change”,fn)
.onereset(fn) .one(”reset”,fn)
.oneselect(fn) .one(”select”,fn)
.onesubmit(fn) .one(”submit”,fn)
.onekeydown(fn) .one(”keydown”,fn)
.onekeypress(fn) .one(”keypress”,fn)
.onekeyup(fn) .one(”keyup”,fn)
.oneerror(fn) .one(”error”,fn)
.unblur(fn) .unbind(”blur”,fn)
.unfocus(fn) .unbind(”focus”,fn)
.unload(fn) .unbind(”load”,fn)
.unresize(fn) .unbind(”resize”,fn)
.unscroll(fn) .unbind(”scroll”,fn)
.ununload(fn) .unbind(”unload”,fn)
.unclick(fn) .unbind(”click”,fn)
.undblclick(fn) .unbind(”dblclick”,fn)
.unmousedown(fn) .unbind(”mousedown”,fn)
.unmouseup(fn) .unbind(”mouseup”,fn)
.unmousemove(fn) .unbind(”mousemove”,fn)
.unmouseover(fn) .unbind(”mouseover”,fn)
.unmouseout(fn) .unbind(”mouseout”,fn)
.unchange(fn) .unbind(”change”,fn)
.unreset(fn) .unbind(”reset”,fn)
.unselect(fn) .unbind(”select”,fn)
.unsubmit(fn) .unbind(”submit”,fn)
.unkeydown(fn) .unbind(”keydown”,fn)
.unkeypress(fn) .unbind(”keypress”,fn)
.unkeyup(fn) .unbind(”keyup”,fn)
.unerror(fn) .unbind(”error”,fn)

What’s more? Well, the jQuery team will be posting throughout the week on all the cool new things you can do with jQuery 1.1. I’m looking forward to seeing the changes! Oh, with regards to changes, its important to note with that list of functions above…the old method will no longer work come v1.1. To keep those functions in use, a ‘helper’ library will need to be used…chances are that won’t be available until the 1.1 final.

Discuss This Article


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment Preview:

 (1761) - jquery change id (17) - jquery (17) - jquery unfocus (7) - jquery attr src (6) - jquery attr (5) - jquery href (4) - jquery attr href (4) - jquery unblur (4) - jquery position left (4) - jquery change width (3) - jquery change position (3) - jQuery css attr (3) - jquery change css background (2) - jquery, attr, background (2) - jquery one (2) - unfocus jquery (2) - jquery position (2) - jquery change background (2) - jquery change the id (2) - jquery .one (2) - jquery css position (2) - jquery attr name (2) - jquery href attr (2) - jQuery attr('id') (2) - jQuery get position (2) - jquery id change (2) - change id jquery (2) - jquery mouseover (2) - change css jquery (2) - jquery attr css (2) - attr jquery (2) - unmousemove (2) - jquery change CSS (2) - attr jquery use (1) - jquery set href (1) - jquery name attr (1) - jquery attr() css (1) - jquery blur background (1) - attr('rel', ) in jquery (1) - attr('title') jquery (1) - jquery attr focus (1) - jquery attr("rel (1) - $.ajax keyup jquery ie (1) - jquery specify CSS (1) - jquery change css top (1) - jquery css top position (1) - jquery set left top position (1) - ajax unbind (1) - jquery documentation attr (1) - unbind('load') jquery (1) - jquery attr top left (1) - how to change css background jquery (1) - a href jquery unbind (1) - jquery left (1) - .attr jquery (1) - jquery,mouseover, change color (1) - jquery css(width (1) - jquery change background color on focus (1) - jquery attr() method (1) - jquery CSS change overflow (1) - change background color by Jquery (1) - jQuery blur or submit (1) - change color on focus with jquery (1) - jquery attr css left (1) - css attr() function (1) - title change with jquery (1) - jquery $(this) name attr (1) - css("top") jquery (1) - jQuery one('focus (1) - use JQuery to set css overflow (1) - jQuery .attr("title (1) - jquery keypress counter (1) - jquery .attr('id') (1) - unbind('mouseover') javascript (1) - jquery dynamically change the css (1) - jquery css api background (1) - firebug (1) - jquery change (1) - jquery position top (1) - jquery background scroll (1) - jquery change href (1) - jquery set height (1) - jquery unbind submit (1) - resetear select jquery (1) - jquery page position (1) - iphone jquery ajax unbind (1) - jquery attr background (1) - jquery css change (1) - jquery unkeyup (1) - jquery unbind (1) - jquery attr title (1) - jquery unmousemove (1) - jquery Scroll to top (1) - jquery css float (1) - scroll (1) - jquery css (1) - jquery attr id (1) - jquery .attr("colspan : (1) - jquery attr width (1) - jquery attr() (1) - change id with jquery (1) - jquery old way new way ancestors parents (1) - jquery old way new way parents ancestors (1) - jquery attr(position (1) - jquery IE attr (1) - jquery keyup unbind (1) - jquery colorjack change css (1) - jquery select an id with this title (1) - jquery .left (1) - jquery changeid (1) - attr("id") jquery (1) - jquery left position (1) - attr function in jquery (1) - is attr jquery (1) - unblur jquery (1) - jquery attr('name', (1) - jquery css background attr (1) - .is.attr( jquery (1) - jquery unbind ajax (1) - unfocus in jquery (1) -