MooTools Core

repository·master·Indexed 25 days ago

https://github.com/mootools/mootools-core

A compact, modular, Object-Oriented JavaScript framework for intermediate to advanced developers. MooTools Core provides foundational utilities and extensions, including a Class system with inheritance and mixins (Chain, Events, Options), and a Browser object for feature detection and user agent parsing. Version 1.6.1-dev.

Tokens
28K
Snippets
112
Records
218
Agent score
83%

What's inside mootools-core

  1. Understand the role of Fx.CSS

    master

    The Fx.CSS class is a CSS parsing utility used internally by the MooTools effects engine. It is a required dependency for the following effect classes:

    • Fx.Tween
    • Fx.Morph
    • Fx.Elements

    Note that Fx.CSS has no public methods and is intended to be used by these higher-level effect classes rather than being called directly by developers.

  2. Download MooTools for use

    master

    This repository is intended for developers contributing to the MooTools core library. If you want to use MooTools in your own projects, do not use this repository. Instead, download the library from the official website.

    http://mootools.net/download
  3. Build MooTools without compatibility

    master

    To build a version of MooTools that excludes deprecated code from older versions (e.g., 1.4.6, 1.3.x), use the nocompat or packager:nocompat Grunt targets.

    Warning: Using this version requires you to migrate your code according to the changelog or version-specific blog posts, as deprecated features will be removed.

  4. Implement the Chain utility class

    master

    The Chain class is a utility that executes functions sequentially, where each function fires after the completion of the previous one. You can implement it into new classes, existing classes, or use it as a standalone instance.

    To use it in a new class, use the Implements property in the constructor. To use it in an existing class, use .implement(Chain).

  5. Implement the Events utility class

    master

    The Events class allows a class to manage an event stack (e.g., 'start', 'complete', 'cancel'). You can implement it into new classes via Implements: Events or into existing classes via .implement(Events).

    Note: When using Events alongside Options, any option starting with 'on' followed by a capital letter (e.g., onComplete) is automatically treated as an event (e.g., complete).

  6. Build MooTools with compatibility

    master
    To build a version of MooTools (e.g., 1.5.1) that maintains compatibility with older versions (e.g., 1.4.6, 1.3.x, etc.), use the compat or packager:compat Grunt targets. By default, these commands will also run the relevant tests (specs).