| MooTools | |
|---|---|
| Developed by | The MooTools Dev Team |
| Latest release | 1.2.0 / January 16, 2008 |
| Written in | JavaScript |
| Type | Ajax framework / JavaScript Framework |
| License | MIT License |
| Website | http://mootools.net |
MooTools is an open source, compact, and modular object-oriented programming JavaScript web application framework. The stated design goal of MooTools is to provide a means for developers to write cross-browser JavaScript in an elegant fashion, which is clearly seen in the many built-in functions for manipulation of CSS[1]. MooTools provides a documented API that is more object-oriented than the standard JavaScript implementation provided by web browsers.
Contents |
MooTools provides the user with many advantages over flat JavaScript. Among them:
MooTools includes many components. Of note is the download builder application available on the mootools site that enables a user to download only the parts of the library they plan on using, and all necessary dependencies. In addition, users can choose the level of compression for the resulting download. Some of the component categories are outlined here:
MooTools is compatible and tested with:
MooTools contains a robust Class creation and inheritance system that resembles most Object-oriented programming languages. For example, the following is a MooTools' equivalent of the examples in Wikipedia's polymorphism page:
var Animal = new Class({ initialize: function(name){ this.name = name; } }); var Cat = new Class({ Extends: Animal, talk: function(){ return 'Meow!'; } }); var Dog = new Class({ Extends: Animal, talk: function(){ return 'Arf! Arf'; } }); var Animals = { a: new Cat('Missy'), b: new Cat('Mr. Bojangles'), c: new Dog('Lassie') }; for(var animal in Animals) alert(animal.name + ': ' + animal.talk()); // alerts the following: // // Missy: Meow! // Mr. Bojangles: Meow! // Lassie: Arf! Arf!
No comments have been added.