After many hours of toil we’re ready to release our first candidate of our public libraries. We’ve put a lot of work into keeping up with Mootools 1.2 and all its goodness, so hopefully the wait has been worth it.
First up, changes!
We’ve refactored nearly the entire library and in most cases the changes don’t affect the actual interface to the classes and methods, but not always. Like Mootools, you can download a compatibility layer which will preserve the old syntax if you have code that you haven’t updated yet.
The most interesting changes are as follows:
- Fx.SmoothShow/SmoothHide is now Fx.Reveal, Element.reveal(), and Element.dissolve()
- Fx.SmoothMove is now just Fx.Move and Element.move()
- stickyWinHtml() is now StickyWin.ui()
There are other changes, but these 3 are the big name changes. You can browse the Compatibility files and see the actual changes if you want to compare, but other than that all the new details are in the docs. Speaking of which…
Check it out, yo: http://clientside.cnet.com/docs
These new docs are obviously rendered using the same docs as the new Mootools engine. The docs would be in much worse shape if it weren’t for one David Kelly who found the svn branch we’ve been working in a few weeks ago and started spellchecking everything for us. David found most of the odd formating errors and various syntax snafoos, but you might still find some. Let us know if you do.
Fancy New Download Page (Courtesy of Mootools.net)
It’s an obvious rip off of the Mootools download page, but we’re still really happy to have it. You can now click and download any portion of the cnet libraries and get it as a single file. You can include Mootools 1.2 with your download here or not, up to you.
Served fresh daily: http://clientside.cnet.com/js
No 3rd Party Scripts Love (yet)
We have two 3rd party scripts we include in our libraries: the awesome Slimbox and Digitarald’s Autocompleter. We haven’t ported either of these yet but we’ll get to them soon enough. Autocompleter has already been refactored for 1.2, so it’s just a matter of us extending it to support our specific classes (the “multi” variants and the jsonp version).
- Updated Mootorial (for both Mootools 1.2 and our code)
- Unit Tests
- Bug fixes, to be sure
So get started, and let us know how it goes!
P.S. A big thanks goes to Valerio and the rest of the Mootools team. Aside from Mootools itself, the download page and documentation engine are nice additions to our offering and we appreciate them letting us rip them off.