DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > Happy Birthday jQuery! 1.4 Released

Happy Birthday jQuery! 1.4 Released

Mitch Pronschinske user avatar by
Mitch Pronschinske
·
Jan. 14, 10 · Web Dev Zone · Interview
Like (0)
Save
Tweet
4.51K Views

Join the DZone community and get the full member experience.

Join For Free
On its 4 year anniversary, jQuery is announcing the final release of jQuery 1.4.  The new, lightweight JavaScript library sports some major speed improvements, new functionality, and better overall codeflow.  Starting today, the whole jQuery team will be at AOL hosting 14 Days of jQuery, an online event explaining the features of 1.4.

The new version of jQuery features better iframe support, flexible events, and much more.  For improving performance, the jQuery team used the FireUnit test suite add-on for Mozilla's Firebug.  By looking at the function call stats, the team was able to reduce the code complexity of their framework and make what was already elegant code even more lightweight.  1.4 also includes workarounds for events that don't bubble in Internet Explorer.  Another new feature is the  jQuery.require() script loader, which allows pieces of code to be loaded asynchronously without harming applications.

The API for jQuery has gotten a complete rewrite by Karl Swedberg.  One of the biggest changes is in .live(), which now supports custom events as well as all JavaScript events.  There is already a cheatsheet available for the jQuery 1.4 API.  Here are the newest additions to the 1.4 API:

  • jQuery.contains() - Check to see if a DOM node is within another DOM node.
  • jQuery.isEmptyObject() - Check to see if an object is empty (contains no properties).
  • jQuery.isPlainObject() - Check to see if an object is a plain object (created using "{}" or "new Object").
  • jQuery.noop - An empty function.
  • .parentsUntil() - Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector.
  • .nextUntil() - Get all following siblings of each element up to but not including the element matched by the selector.
  • .clearQueue() - Remove from the queue all items that have not yet been run.
  • .delay() - Set a timer to delay execution of subsequent items in the queue.
  • .detach() - Remove the set of matched elements from the DOM.
  • .focusin() - Bind an event handler to the "focusin" JavaScript event.
  • .focusout() - Bind an event handler to the "focusout" JavaScript event.
  • .has() - Check to see if a DOM node, or selector set of DOM elements, is within another DOM node.
  • .prevUntil() - Get all preceding siblings of each element up to but not including the element matched by the selector.
  • jQuery.proxy() - Takes a function and returns a new one that will always have a particular scope.
  • .toArray() - Retrieve all the DOM elements contained in the jQuery set, as an array.
  • .unwrap() - Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.

jQuery is giving away free ebooks to anyone who makes a donation of $20 or more to the open source jQuery project.  Go to the donations page and make a tax-deductible contribution.

Keep an eye out for more feature announcements on the 14 Days of jQuery website.  Here is the source code for the jQuery 1.4 final.  Enjoy!
JQuery Element Event

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • The Engineer’s Guide to Creating a Technical Debt Proposal
  • How To Integrate Third-Party Login Systems in Your Web App Using OAuth 2.0
  • 10 Steps to Become an Outstanding Java Developer
  • JUnit 5 Tutorial: Nice and Easy [Video]

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo