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
            */

            SimpleDialog.superclass.init.call(this, el/*, userConfig*/);
        
            this.beforeInitEvent.fire(SimpleDialog);
        
            Dom.addClass(this.element, SimpleDialog.CSS_SIMPLEDIALOG);
        
            this.cfg.queueProperty("postmethod", "manual");
        
            if (userConfig) {
                this.cfg.applyConfig(userConfig, true);
            }
        
            this.beforeRenderEvent.subscribe(function () {
                if (! this.body) {
                    this.setBody("");
                }
            }, this, true);
        
            this.initEvent.fire(SimpleDialog);
        
        }
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
            */

            SimpleDialog.superclass.init.call(this, el/*, userConfig*/);
        
            this.beforeInitEvent.fire(SimpleDialog);
        
            Dom.addClass(this.element, SimpleDialog.CSS_SIMPLEDIALOG);
        
            this.cfg.queueProperty("postmethod", "manual");
        
            if (userConfig) {
                this.cfg.applyConfig(userConfig, true);
            }
        
            this.beforeRenderEvent.subscribe(function () {
                if (! this.body) {
                    this.setBody("");
                }
            }, this, true);
        
            this.initEvent.fire(SimpleDialog);
        
        }
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
            */ SimpleDialog . superclass . init . call ( this , el /*, userConfig*/ ) ; this . beforeInitEvent . fire ( SimpleDialog ) ; Dom . addClass ( this . element , SimpleDialog . CSS_SIMPLEDIALOG ) ; this . cfg . queueProperty ( "postmethod" , "manual" ) ; if ( userConfig ) { this . cfg . applyConfig ( userConfig , true ) ; } this . beforeRenderEvent . subscribe ( function ( ) { if ( ! this . body ) { this . setBody ( "" ) ; } } , this , true ) ; this . initEvent . fire ( SimpleDialog ) ; }
The SimpleDialog initialization method, which is executed for
SimpleDialog 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 SimpleDialog
<em>OR</em>
@param {HTMLElement} el The element representing the SimpleDialog
@param {Object} userConfig The configuration object literal
containing the configuration that should be set for this
SimpleDialog. See configuration documentation for more details.
The SimpleDialog initialization method which is executed for SimpleDialog 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 .