public/javascripts/yui/container/container.js
function (el, userConfig) {

            /*
                 Note that we don't pass the user config in here yet because 
                 we only want it executed once, at the lowest subclass level
            */

            Dialog.superclass.init.call(this, el/*, userConfig*/); 

            this.beforeInitEvent.fire(Dialog);

            Dom.addClass(this.element, Dialog.CSS_DIALOG);

            this.cfg.setProperty("visible", false);

            if (userConfig) {
                this.cfg.applyConfig(userConfig, true);
            }

            this.showEvent.subscribe(this.focusFirst, this, true);
            this.beforeHideEvent.subscribe(this.blurButtons, this, true);

            this.subscribe("changeBody", this.registerForm);

            this.initEvent.fire(Dialog);
        }
function (el, userConfig) {

            /*
                 Note that we don't pass the user config in here yet because 
                 we only want it executed once, at the lowest subclass level
            */

            Dialog.superclass.init.call(this, el/*, userConfig*/); 

            this.beforeInitEvent.fire(Dialog);

            Dom.addClass(this.element, Dialog.CSS_DIALOG);

            this.cfg.setProperty("visible", false);

            if (userConfig) {
                this.cfg.applyConfig(userConfig, true);
            }

            this.showEvent.subscribe(this.focusFirst, this, true);
            this.beforeHideEvent.subscribe(this.blurButtons, this, true);

            this.subscribe("changeBody", this.registerForm);

            this.initEvent.fire(Dialog);
        }
function ( el , userConfig ) { /*
                 Note that we don't pass the user config in here yet because 
                 we only want it executed once, at the lowest subclass level
            */ Dialog . superclass . init . call ( this , el /*, userConfig*/ ) ; this . beforeInitEvent . fire ( Dialog ) ; Dom . addClass ( this . element , Dialog . CSS_DIALOG ) ; this . cfg . setProperty ( "visible" , false ) ; if ( userConfig ) { this . cfg . applyConfig ( userConfig , true ) ; } this . showEvent . subscribe ( this . focusFirst , this , true ) ; this . beforeHideEvent . subscribe ( this . blurButtons , this , true ) ; this . subscribe ( "changeBody" , this . registerForm ) ; this . initEvent . fire ( Dialog ) ; }
The Dialog initialization method, which is executed for Dialog and
all of its subclasses. This method is automatically called by the
constructor, and  sets up all DOM references for pre-existing markup,
and creates required markup if it is not already present.

@method init
@param {String} el The element ID representing the Dialog <em>OR</em>
@param {HTMLElement} el The element representing the Dialog
@param {Object} userConfig The configuration object literal
containing the configuration that should be set for this Dialog.
See configuration documentation for more details.
The Dialog initialization method which is executed for Dialog and all of its subclasses . This method is automatically called by the constructor and sets up all DOM references for pre - existing markup and creates required markup if it is not already present .