public/javascripts/yui/datatable/datatable.js
function(row) {
    var rowIndex;

    // Get page row index for the element
    if(!lang.isNumber(row)) {
        rowIndex = Dom.get(row).sectionRowIndex;
    }
    else {
        rowIndex = row;
    }
    if(lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) {
        // Cannot use tbody.deleteRow due to IE6 instability
        //return this._elTbody.deleteRow(rowIndex);
        return this._elTbody.removeChild(this.getTrEl(row));
    }
    else {
        return null;
    }
}
function(row) {
    var rowIndex;

    // Get page row index for the element
    if(!lang.isNumber(row)) {
        rowIndex = Dom.get(row).sectionRowIndex;
    }
    else {
        rowIndex = row;
    }
    if(lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) {
        // Cannot use tbody.deleteRow due to IE6 instability
        //return this._elTbody.deleteRow(rowIndex);
        return this._elTbody.removeChild(this.getTrEl(row));
    }
    else {
        return null;
    }
}
function ( row ) { var rowIndex ; // Get page row index for the element if ( ! lang . isNumber ( row ) ) { rowIndex = Dom . get ( row ) . sectionRowIndex ; } else { rowIndex = row ; } if ( lang . isNumber ( rowIndex ) && ( rowIndex > - 2 ) && ( rowIndex < this . _elTbody . rows . length ) ) { // Cannot use tbody.deleteRow due to IE6 instability //return this._elTbody.deleteRow(rowIndex); return this . _elTbody . removeChild ( this . getTrEl ( row ) ) ; } else { return null ; } }
Deletes TR element by DOM reference or by DataTable page row index.

@method _deleteTrEl
@param row {HTMLElement | Number} TR element reference or Datatable page row index.
@return {Boolean} Returns true if successful, else returns false.
@private
Deletes TR element by DOM reference or by DataTable page row index .