public/javascripts/yui/container/container.js
function (bodyContent) {
            var oBody = this.body || (this.body = createBody());

            if (bodyContent.nodeName) {
                oBody.innerHTML = "";
                oBody.appendChild(bodyContent);
            } else {
                oBody.innerHTML = bodyContent;
            }

            if (this._rendered) {
                this._renderBody();
            }

            this.changeBodyEvent.fire(bodyContent);
            this.changeContentEvent.fire();
        }
function (bodyContent) {
            var oBody = this.body || (this.body = createBody());

            if (bodyContent.nodeName) {
                oBody.innerHTML = "";
                oBody.appendChild(bodyContent);
            } else {
                oBody.innerHTML = bodyContent;
            }

            if (this._rendered) {
                this._renderBody();
            }

            this.changeBodyEvent.fire(bodyContent);
            this.changeContentEvent.fire();
        }
function ( bodyContent ) { var oBody = this . body || ( this . body = createBody ( ) ) ; if ( bodyContent . nodeName ) { oBody . innerHTML = "" ; oBody . appendChild ( bodyContent ) ; } else { oBody . innerHTML = bodyContent ; } if ( this . _rendered ) { this . _renderBody ( ) ; } this . changeBodyEvent . fire ( bodyContent ) ; this . changeContentEvent . fire ( ) ; }
Sets the Module's body content to the HTML specified.

If no body is present, one will be automatically created.

An empty string can be passed to the method to clear the contents of the body.
@method setBody
@param {String} bodyContent The HTML used to set the body.
As a convenience, non HTMLElement objects can also be passed into
the method, and will be treated as strings, with the body innerHTML
set to their default toString implementations.
<em>OR</em>
@param {HTMLElement} bodyContent The HTMLElement to add as the first and only
child of the body element.
<em>OR</em>
@param {DocumentFragment} bodyContent The document fragment
containing elements which are to be added to the body
Sets the Module s body content to the HTML specified .