jQuery 1.4.1 Released
jQuery 1.4.1 is now out! This is the first bug fix release on top of jQuery 1.4, fixing some outstanding bugs from the 1.4 release and touching up some gaps in the API.
I would like to thank the following people that provided patches for this release: Ben Alman, Mike Alsup, Irae Brasil, Matt Curry, Robert Katić, Michael Monteleone, and Karl Swedberg.
Downloading
As usual, we provide two copies of jQuery, one minified (we now use the Google Closure Compiler as the default minifier) and one uncompressed (for debugging or reading).
- jQuery Minified (23kb Gzipped)
- jQuery Regular (157kb)
You can feel free to include the above URLs directly into your site and you will get the full performance benefits of a quickly-loading jQuery.
New Features
A full list of the API changes can be found in the 1.4.1 category on the jQuery API site.
- .live(“focus”) and .live(“blur”) now work – mapping to .live(“focusin”) and .live(“focusout”). (Documentation, Ticket)
- .live(“hover”) now exists, mapping to .live(“mouseenter mouseleave”). (Documentation, Ticket)
- It’s now possible to bind multiple event types with live. (Documentation, Ticket)
- Calling .die() (with no arguments) removes all bound live event handlers. (Documentation, Ticket)
- .height( function ) and .width( function ) now exist. (Height Documentation, Width Documentation, Ticket)
- jQuery.parseJSON has been exposed, allowing you to parse JSON strings into JavaScript objects. (Documentation, Ticket)
- jQuery.error has been exposed, to be used by plugin developers to provide informative user feedback. (Documentation, Ticket)
Bug Fixes
Core
Events
- multi event bind() causes namespacing to fail
- bind() with special events causes things to get corrupted (Ticket 1, Ticket 2)
- change event broken in IE
- Unable to preventDefault on live submit
- Select change event firing on first focus
- .live() is affecting inline scripts
- Stop live click from triggering on right click
Traversing
Effects
Ajax
- ajaxError not firing on 404 for load
- if data has length breaks param
- Make sure context is set back to original in all cases
- Don’t deep extend context
- Don’t attempt to set the readyState
- Parsererror cause lost
Offset
Manipulation
- Make sure .html() is XHTML purified
- Cloned checkbox checked aren’t cloned in WebKit
- replaceWith(fn) function scope is useless
- wrapInner(fn) is inconsistent with wrapInner(html)
- .remove() not removing generic handler
- Possible memory leak with remove()/events in IE
Originally published at 14 Days of jQuery (archived).