public/javascripts/yui/datatable/datatable.js
function(elTable) {
    if(elTable) {
        // Destroy previous
        this._destroyTbodyEl();
        
        // Create TBODY
        var elTbody = elTable.appendChild(document.createElement("tbody"));
        elTbody.tabIndex = 0;
        elTbody.className = DT.CLASS_DATA;
    
        // Set up DOM events for TBODY
        Ev.addListener(elTbody, "focus", this._onTbodyFocus, this);
        Ev.addListener(elTbody, "mouseover", this._onTableMouseover, this);
        Ev.addListener(elTbody, "mouseout", this._onTableMouseout, this);
        Ev.addListener(elTbody, "mousedown", this._onTableMousedown, this);
        Ev.addListener(elTbody, "mouseup", this._onTableMouseup, this);
        Ev.addListener(elTbody, "keydown", this._onTbodyKeydown, this);
        Ev.addListener(elTbody, "keypress", this._onTableKeypress, this);
        Ev.addListener(elTbody, "click", this._onTbodyClick, this);
        
        // Since we can't listen for click and dblclick on the same element...
        // Attach separately to THEAD and TBODY
        ///Ev.addListener(elTbody, "dblclick", this._onTableDblclick, this);
        
    
        // IE puts focus outline in the wrong place
        if(ua.ie) {
            elTbody.hideFocus=true;
        }

        this._elTbody = elTbody;
    }
}
function(elTable) {
    if(elTable) {
        // Destroy previous
        this._destroyTbodyEl();
        
        // Create TBODY
        var elTbody = elTable.appendChild(document.createElement("tbody"));
        elTbody.tabIndex = 0;
        elTbody.className = DT.CLASS_DATA;
    
        // Set up DOM events for TBODY
        Ev.addListener(elTbody, "focus", this._onTbodyFocus, this);
        Ev.addListener(elTbody, "mouseover", this._onTableMouseover, this);
        Ev.addListener(elTbody, "mouseout", this._onTableMouseout, this);
        Ev.addListener(elTbody, "mousedown", this._onTableMousedown, this);
        Ev.addListener(elTbody, "mouseup", this._onTableMouseup, this);
        Ev.addListener(elTbody, "keydown", this._onTbodyKeydown, this);
        Ev.addListener(elTbody, "keypress", this._onTableKeypress, this);
        Ev.addListener(elTbody, "click", this._onTbodyClick, this);
        
        // Since we can't listen for click and dblclick on the same element...
        // Attach separately to THEAD and TBODY
        ///Ev.addListener(elTbody, "dblclick", this._onTableDblclick, this);
        
    
        // IE puts focus outline in the wrong place
        if(ua.ie) {
            elTbody.hideFocus=true;
        }

        this._elTbody = elTbody;
    }
}
function ( elTable ) { if ( elTable ) { // Destroy previous this . _destroyTbodyEl ( ) ; // Create TBODY var elTbody = elTable . appendChild ( document . createElement ( "tbody" ) ) ; elTbody . tabIndex = 0 ; elTbody . className = DT . CLASS_DATA ; // Set up DOM events for TBODY Ev . addListener ( elTbody , "focus" , this . _onTbodyFocus , this ) ; Ev . addListener ( elTbody , "mouseover" , this . _onTableMouseover , this ) ; Ev . addListener ( elTbody , "mouseout" , this . _onTableMouseout , this ) ; Ev . addListener ( elTbody , "mousedown" , this . _onTableMousedown , this ) ; Ev . addListener ( elTbody , "mouseup" , this . _onTableMouseup , this ) ; Ev . addListener ( elTbody , "keydown" , this . _onTbodyKeydown , this ) ; Ev . addListener ( elTbody , "keypress" , this . _onTableKeypress , this ) ; Ev . addListener ( elTbody , "click" , this . _onTbodyClick , this ) ; // Since we can't listen for click and dblclick on the same element... // Attach separately to THEAD and TBODY ///Ev.addListener(elTbody, "dblclick", this._onTableDblclick, this); // IE puts focus outline in the wrong place if ( ua . ie ) { elTbody . hideFocus = true ; } this . _elTbody = elTbody ; } }
Initializes TBODY element for data.

@method _initTbodyEl
@param elTable {HTMLElement} TABLE element into which to create TBODY .
@private
Initializes TBODY element for data .