JQuery 1.5 Released

Tags: JQuery

JQuery 1.5 was released yesterday. I have not had a chance to review all of the new features, but it looks like it has all of the performance improvements like in previous releases. One of the cool new features is the .sub() function. The new Sub function actually creates a copy of the JQuery object that can be modified.

  (function(){
    var sub$ = jQuery.sub();

    sub$.fn.myCustomMethod = function(){
      return 'just for me';
    };

    sub$(document).ready(function() {
      sub$('body').myCustomMethod() // 'just for me'
    });
  })();
  
  typeof jQuery('body').myCustomMethod // undefined

There also many improvements to the Ajax functions. Read up on it at JQuery.com.

Add a Comment

Share This Page

Weather

Observation Location: KJAX
icon
Mostly Cloudy
Temperature: 83 F (28 C)
Relative Humidity: 46%
Wind: From the SE at 13 MPH
Wind Dir: SE
Wind Degrees: 130
Wind Mph: 13
Wind Gust Mph:
Pressure: 29.86 in (1011 mb)
Dewpoint: 60 F (16 C)
Windchill: NA
Visibility: 10.0
Forecast
History
Location Jacksonville, Florida

My Twitter