public/javascripts/yui/yuiloader/yuiloader.js
function(when, o, fn, data, periodic) {
        when = when || 0; 
        o = o || {};
        var m=fn, d=data, f, r;

        if (L.isString(fn)) {
            m = o[fn];
        }

        if (!m) {
            throw new TypeError("method undefined");
        }

        if (d && !L.isArray(d)) {
            d = [data];
        }

        f = function() {
            m.apply(o, d || NOTHING);
        };

        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);

        return {
            interval: periodic,
            cancel: function() {
                if (this.interval) {
                    clearInterval(r);
                } else {
                    clearTimeout(r);
                }
            }
        };
    }
function(when, o, fn, data, periodic) {
        when = when || 0; 
        o = o || {};
        var m=fn, d=data, f, r;

        if (L.isString(fn)) {
            m = o[fn];
        }

        if (!m) {
            throw new TypeError("method undefined");
        }

        if (d && !L.isArray(d)) {
            d = [data];
        }

        f = function() {
            m.apply(o, d || NOTHING);
        };

        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);

        return {
            interval: periodic,
            cancel: function() {
                if (this.interval) {
                    clearInterval(r);
                } else {
                    clearTimeout(r);
                }
            }
        };
    }
function ( when , o , fn , data , periodic ) { when = when || 0 ; o = o || { } ; var m = fn , d = data , f , r ; if ( L . isString ( fn ) ) { m = o [ fn ] ; } if ( ! m ) { throw new TypeError ( "method undefined" ) ; } if ( d && ! L . isArray ( d ) ) { d = [ data ] ; } f = function ( ) { m . apply ( o , d || NOTHING ) ; } ; r = ( periodic ) ? setInterval ( f , when ) : setTimeout ( f , when ) ; return { interval : periodic , cancel : function ( ) { if ( this . interval ) { clearInterval ( r ) ; } else { clearTimeout ( r ) ; } } } ; }
Executes the supplied function in the context of the supplied
object 'when' milliseconds later.  Executes the function a
single time unless periodic is set to true.
@method later
@since 2.4.0
@param when {int} the number of milliseconds to wait until the fn
is executed
@param o the context object
@param fn {Function|String} the function to execute or the name of
the method in the 'o' object to execute
@param data [Array] data that is provided to the function.  This accepts
either a single item or an array.  If an array is provided, the
function is executed with one parameter for each array item.  If
you need to pass a single array parameter, it needs to be wrapped in
an array [myarray]
@param periodic {boolean} if true, executes continuously at supplied
interval until canceled
@return a timer object. Call the cancel() method on this object to
stop the timer.
Executes the supplied function in the context of the supplied object when milliseconds later . Executes the function a single time unless periodic is set to true .