public/javascripts/yui/datatable/datatable.js
function(sCaption) {
    if(this._elTable && sCaption) {
        // Create CAPTION element
        if(!this._elCaption) { 
            this._elCaption = this._elTable.createCaption();
        }
        // Set CAPTION value
        this._elCaption.innerHTML = sCaption;
    }
    else if(this._elCaption) {
        this._elCaption.parentNode.removeChild(this._elCaption);
    }
}
function(sCaption) {
    if(this._elTable && sCaption) {
        // Create CAPTION element
        if(!this._elCaption) { 
            this._elCaption = this._elTable.createCaption();
        }
        // Set CAPTION value
        this._elCaption.innerHTML = sCaption;
    }
    else if(this._elCaption) {
        this._elCaption.parentNode.removeChild(this._elCaption);
    }
}
function ( sCaption ) { if ( this . _elTable && sCaption ) { // Create CAPTION element if ( ! this . _elCaption ) { this . _elCaption = this . _elTable . createCaption ( ) ; } // Set CAPTION value this . _elCaption . innerHTML = sCaption ; } else if ( this . _elCaption ) { this . _elCaption . parentNode . removeChild ( this . _elCaption ) ; } }
Creates HTML markup CAPTION element.

@method _initCaptionEl
@param sCaption {String} Text for caption.
@private
Creates HTML markup CAPTION element .