JQuery 1.4.1 came out

    jQueryHooray, comrades! We meet the new version of jQuery and are glad that the developers of this wonderful javascript library are still intensively developing and promoting their brainchild! Before we could get comfortable with jQuery 1.4, we rolled up a new release. JQuery 1.4.1 fixed several bugs that appeared in version 1.4 and worked on the API for glory.




    1. Download jQuery 1.4.1 here:




    2. And now I propose to get acquainted with the innovations:


    • It occurred to the developers that their initial idea was to name the “blur” and “focus” events (losing and gaining html focus by the elements) with new names, namely “focusin” and “focusout”, and maybe not so good, so now in the method .live () we can use the first option (“focusin” and “focusout” naturally haven’t gone anywhere for backward compatibility).
    • The same situation with the events of "mouseenter", "mouseleave". Now besides them, in the .live () method, you can also use the hover method
    • For the .live () method, you can now set several types of events, as well as for .bind (). An example of how this might be useful:
      $('#some_element').live('mouseenter mouseleave', function() {
      $(this).toggleClass('entered');
      });

    • Once again, rational thinking visited the creators of jQuery when they looked at the .die () method. Well, or good developers send them the correct tickets to the bugtracker :) Originally designed to remove event handlers assigned using the .live () method, now the .die () function can delete them all if it is called without parameters (t i.e. there is no need to pass the type of event to it for which you want to remove handlers).
    • Now you can pass a function to the .height () and .width () methods, which will set the height / width accordingly.
    • The .parseJSON () functions (parsing a JSON string in a javascript object) and .error () (a single error output mechanism is good) are now available to everyone (previously used only inside jQuery), which is quite logical, as for me.

    A bunch of bugs have been fixed, but I will not dwell on them in detail, we read about this here (in English).

    Thanks for attention. Do not be lazy, update jQuery in our projects;)

    Also popular now: