# Yahoo! UI Library

### event 3.0.0b1

Yahoo! UI Library > event > available.js (source view)
Search:
Filters
Show Private Show Protected Show Deprecated

    /**
     * Executes the callback as soon as the specified element
     * is detected in the DOM.
     * @for YUI
     * @event available
     */
    Y.Env.evt.plugins.available = {
        on: function(type, fn, id, o) {
            var a = arguments.length > 4 ?  Y.Array(arguments, 4, true) : [];
            return Y.Event.onAvailable.call(Y.Event, id, fn, o, a);
        }
    };

    /**
     * Executes the callback as soon as the specified element
     * is detected in the DOM with a nextSibling property
     * (indicating that the element's children are available)
     * @for YUI
     * @event contentready
     */
    Y.Env.evt.plugins.contentready = {
        on: function(type, fn, id, o) {
            var a = arguments.length > 4 ?  Y.Array(arguments, 4, true) : [];
            return Y.Event.onContentReady.call(Y.Event, id, fn, o, a);
        }
    };

Copyright © 2009 Yahoo! Inc. All rights reserved.