MooTools version 1.1 released
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:
-
-
var note = new Element('div', {
-
'id': 'note',
-
'class': 'note',
-
'styles': {
-
'left': 15,
-
'top': 15
-
},
-
'events': {
-
'click': noteConfirm,
-
'mouseover': noteShowMore
-
}
-
});
-
-
- 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:
MIT license
-
'


