MooTools
≈ 2 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
MooTools (My Object-Oriented Tools) is a lightweight, object-oriented JavaScript framework. It is released under the free, open-source MIT License.
MooTools (My Object-Oriented Tools) is a lightweight, object-oriented JavaScript framework. It is released under the free, open-source MIT License. ==Overview== MooTools provides the user with a number of options beyond native JavaScript. These include: An extensible and modular framework allowing developers to choose their own customized combination of components. MooTools follows object-oriented practices and the DRY principle. An advanced effects component, with optimized transitions such as easing equations used by many Flash developers. Enhancements to the DOM, enabling developers to easily add, modify, select, and delete DOM elements. Storing and retrieving information with Element storage is also supported. The framework includes built-in functions for manipulation of CSS, DOM elements, native JavaScript objects, Ajax requests, DOM effects, and more. MooTools also provides a detailed, coherent application programming interface (API), as well as a custom downloads module allowing developers to download only the modules and dependencies they need for a particular app. 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') }; Object.each(animals, function (animal) { alert(animal.name + ': ' + animal.talk()); }); // alerts the following: // // Missy: Meow! // Mr. Bojangles: Meow! // Lassie: Arf! Arf! ==References== ==Further reading== "The Introduction to MooTools Architecture". Applied Mechanics and Materials. "Interactive Consultation Based on MooTools Long Polling Techniques". Applied Mechanics and Materials. ==External links==
Text derived from https://en.wikipedia.org/w/index.php?oldid=1372554468 under CC BY-SA 4.0; modifications have been made.