public/javascripts/yui/history/history-debug.js
function (fn, obj, overrideContext) {

            if (_initialized) {

                setTimeout(function () {
                    var ctx = window;
                    if (overrideContext) {
                        if (overrideContext === true) {
                            ctx = obj;
                        } else {
                            ctx = overrideContext;
                        }
                    }
                    fn.call(ctx, "onLoad", [], obj);
                }, 0);

            } else {

                YAHOO.util.History.onLoadEvent.subscribe(fn, obj, overrideContext);

            }
        }
function (fn, obj, overrideContext) {

            if (_initialized) {

                setTimeout(function () {
                    var ctx = window;
                    if (overrideContext) {
                        if (overrideContext === true) {
                            ctx = obj;
                        } else {
                            ctx = overrideContext;
                        }
                    }
                    fn.call(ctx, "onLoad", [], obj);
                }, 0);

            } else {

                YAHOO.util.History.onLoadEvent.subscribe(fn, obj, overrideContext);

            }
        }
function ( fn , obj , overrideContext ) { if ( _initialized ) { setTimeout ( function ( ) { var ctx = window ; if ( overrideContext ) { if ( overrideContext === true ) { ctx = obj ; } else { ctx = overrideContext ; } } fn . call ( ctx , "onLoad" , [ ] , obj ) ; } , 0 ) ; } else { YAHOO . util . History . onLoadEvent . subscribe ( fn , obj , overrideContext ) ; } }
Executes the supplied callback when the Browser History Manager is
ready. This will execute immediately if called after the Browser
History Manager onLoad event has fired.

@method onReady
@param {function} fn what to execute when the Browser History Manager is ready.
@param {object} obj an optional object to be passed back as a parameter to fn.
@param {boolean|object} overrideContext If true, the obj passed in becomes fn's execution scope.
@see onLoadEvent
Executes the supplied callback when the Browser History Manager is ready . This will execute immediately if called after the Browser History Manager onLoad event has fired .