.events

Returns a cached instance of the jQuery object at the dom-ready state.

The $ symbol in jQuery-based JavaScript development is typically read as a cached instance of the global jQuery object. If all variables are wrapped in a manner so as to not pollute the global namespace, however, the dollar-sign variable will not be accessible. Clique.UI caches the jQuery object to be able to globally read it's properties and executes it's functions without instatiatng a new instance each time.

Markup

;(function(clique) {
    var $ = clique.$;
    // Any jQuery functions can now be executed using the `$` symbol
    // without fear of polluting the global namespace
    ...
})(Clique);

Example

;(function(clique) {
    var $ = clique.$;

    // Begin jQuery object manipulation
    $('#my-element').animate({
        'margin-top' : 30
    });
})(Clique);