mootools version 1 official world release

March 21 2007, 15:47:11

That’s right. No more 0.x versions.

After a few months of full development immersion, with the help of Chris, Aaron, the forum guys and the IRC Channel guys, Mootools v1 has been officially released.

Notable Changes:

All the MooTools Classes use now Events. No, not element events. Class Events. Right, you can add as many onCompletes as you want, onChange(s), onStart(s).. Well, you get the idea. Options starting with “on” become events, so need to change your code on this one.

All the code, plugins, everything now uses element events. With a completely rewritten event system, its now less memory hungry and a whole lot easier to add events to your elements. You wont find another .onclick in MooTools. We’ve also added the ability to fire an event by hand, or remove all of the events from an element, or all of the events of a certain type (ex. click).

There are also a number of new “Components”, like Color, to convert colors from HSB to RGB and vice-versa, Hash, to create more flexible javascript objects.

New plugins have been added, like SmoothScroll, the Scroller, Slider, Assets and Json.Remote, to make Ajax requests directly with Javascript objects. As always, you decide which components to include, so your own version wont be bloated.

Effects are now more powerful than ever, Fx.Style/Styles/Elements now can include colors and shorthand properties. They also support one value start (the starting value will be computed in real time). You have a div with height = 100 and want to go to 200? as easy as start(200). Fx will read your current style.

There are a million of other changes/improvements, but I’ll leave the job to the documentation, or the long changelog.

API Changes:

Yes, there are a few of those. Thats what happens when a new, more powerful version comes out. (not to say the first v1 real release).

Drag has been completely rewritten to be more stable, compatible, make use of the new Events system and with a few more candies. The bad news is the options have changed a little, so you’ll need to update your code if you were using the old one.

Same thing applies for Sortables.

Needless to say, refer to the official documentation, or the exceptional MooTorial by Aaron Newton, if you have any doubts on anything.

If you encounter problems or issues you are welcome in the MooTools forum, or the irc channel.