MooTools 1.1 Released

Written by on May 8th, 2007 in Ajax News.

MooTools version 1.1 has been released with “with crazy optimizations for speed, compatibility, flexibility, and all around greatness.”

New Features

  • Custom Events: A brand-new API to define custom events. The events ‘mouseenter’, and ‘mouseleave’, and ‘domready’ have been added as custom events.
  • Enhanced Element(): New methods, and enhancements such as an improved way to add HTML, such as:
    JAVASCRIPT:

    1.  
    2. var note = new Element(’div’, {
    3.         ‘id’: ‘note’,
    4.         ‘class’: ‘note’,
    5.         ’styles’: {
    6.                 ‘left’: 15,
    7.                 ‘top’: 15
    8.         },
    9.         ‘events’: {
    10.                 ‘click’: noteConfirm,
    11.                 ‘mouseover’: noteShowMore
    12.         }
    13. });
    14.  
  • Element Filters: $(’myElement’).getChildren().filterByClass(’myClass’);
  • Perfecting Ajax: Ajax::cancel allows running requests to be aborted, Ajax::evalScripts has been enhanced to include global eval and automated evaluation of responses with a JavaScript Content-Type
  • Hash.Cookie is an extended Hash Class that can automatically and manually save and load Hash values using JSON in a Cookie.
  • Generics have been added for native prototypes, Element, and Elements.
  • Advanced Garbage Collection: $(’content’).empty().setHTML(newText);

For more information check out:

Source: Ajaxian
Original Article: http://ajaxian.com/archives/mootools-11-released

Leave a Reply

You must be logged in to post a comment.



Site Navigation