src/aria/utils/overlay/LoadingOverlay.js
function (element, overlayId, options) {
        // ------------------------------------------ input arguments processing

        if (options == null) {
            options = {};
        }

        if (ariaUtilsType.isString(options)) {
            options = {message: options};
        }

        var waiAria = options.waiAria;

        var message = options.message;
        this.__text = message;

        var waiAriaReadInterval = options.waiAriaReadInterval;
        if (waiAriaReadInterval == null) {
            waiAriaReadInterval = 2000;
        }
        this._waiAriaReadInterval = waiAriaReadInterval;

        var waiAriaReadOnceFirst = options.waiAriaReadOnceFirst;
        if (waiAriaReadOnceFirst == null) {
            waiAriaReadOnceFirst = true;
        }
        this._waiAriaReadOnceFirst = waiAriaReadOnceFirst;

        // ---------------------------------------------------------- processing

        this.$Overlay.constructor.call(this, element, {
            id : overlayId,
            className : "xLDI"
        }, {
            waiAria: waiAria
        });

        var browser = aria.core.Browser;
        // fix 08364518 : if IE<9, the scroll event on an element does not bubble up and trigger the handler
        // attached to the window
        if (browser.isIE8 || browser.isIE7) {
            this._scrollRecListener = true;
            ariaUtilsEvent.addListenerRecursivelyUp(this.element, "scroll", {
                fn : this.refreshPosition,
                scope : this
            }, true, function (element) {
                return element.style && element.style.overflow != "hidden";
            });
        }
    }
function (element, overlayId, options) {
        // ------------------------------------------ input arguments processing

        if (options == null) {
            options = {};
        }

        if (ariaUtilsType.isString(options)) {
            options = {message: options};
        }

        var waiAria = options.waiAria;

        var message = options.message;
        this.__text = message;

        var waiAriaReadInterval = options.waiAriaReadInterval;
        if (waiAriaReadInterval == null) {
            waiAriaReadInterval = 2000;
        }
        this._waiAriaReadInterval = waiAriaReadInterval;

        var waiAriaReadOnceFirst = options.waiAriaReadOnceFirst;
        if (waiAriaReadOnceFirst == null) {
            waiAriaReadOnceFirst = true;
        }
        this._waiAriaReadOnceFirst = waiAriaReadOnceFirst;

        // ---------------------------------------------------------- processing

        this.$Overlay.constructor.call(this, element, {
            id : overlayId,
            className : "xLDI"
        }, {
            waiAria: waiAria
        });

        var browser = aria.core.Browser;
        // fix 08364518 : if IE<9, the scroll event on an element does not bubble up and trigger the handler
        // attached to the window
        if (browser.isIE8 || browser.isIE7) {
            this._scrollRecListener = true;
            ariaUtilsEvent.addListenerRecursivelyUp(this.element, "scroll", {
                fn : this.refreshPosition,
                scope : this
            }, true, function (element) {
                return element.style && element.style.overflow != "hidden";
            });
        }
    }
function ( element , overlayId , options ) { // ------------------------------------------ input arguments processing if ( options == null ) { options = { } ; } if ( ariaUtilsType . isString ( options ) ) { options = { message : options } ; } var waiAria = options . waiAria ; var message = options . message ; this . __text = message ; var waiAriaReadInterval = options . waiAriaReadInterval ; if ( waiAriaReadInterval == null ) { waiAriaReadInterval = 2000 ; } this . _waiAriaReadInterval = waiAriaReadInterval ; var waiAriaReadOnceFirst = options . waiAriaReadOnceFirst ; if ( waiAriaReadOnceFirst == null ) { waiAriaReadOnceFirst = true ; } this . _waiAriaReadOnceFirst = waiAriaReadOnceFirst ; // ---------------------------------------------------------- processing this . $Overlay . constructor . call ( this , element , { id : overlayId , className : "xLDI" } , { waiAria : waiAria } ) ; var browser = aria . core . Browser ; // fix 08364518 : if IE<9, the scroll event on an element does not bubble up and trigger the handler // attached to the window if ( browser . isIE8 || browser . isIE7 ) { this . _scrollRecListener = true ; ariaUtilsEvent . addListenerRecursivelyUp ( this . element , "scroll" , { fn : this . refreshPosition , scope : this } , true , function ( element ) { return element . style && element . style . overflow != "hidden" ; } ) ; } }
Creates a loading overlay above a DOM Element.

<p>The options object contains the following properties: </p>
<ul>
<li><em>message</em>: the message to display</li>
<li><em>waiAria</em>: forwarded to the parent constructor</li>
<li><em>waiAriaReadInterval</em>: when waiAria is activated, the interval (in milliseconds) at which to read the message. Defaults to 2000.</li>
<li><em>waiAriaReadOnceFirst</em>: when waiAria is activated, whether to read the message once first or not. Defaults to <em>true</em>.</li>
</ul>

@param {HTMLElement} element The element that should be hidden by an overlay
@param {String} overlayId The id of the overlay
@param {Object|String} options The optional options, see description for more details. If a string is passed directly it is assumed to be the message.
Creates a loading overlay above a DOM Element .