public/javascripts/yui/datatable/datatable.js
function(row) {
    var oRecord = this._oRecordSet.getRecord(row);

    if(!oRecord) {
        // Validate TR element
        var elRow = this.getTrEl(row);
        if(elRow) {
            oRecord = this._oRecordSet.getRecord(elRow.id);
        }
    }

    if(oRecord instanceof YAHOO.widget.Record) {
        return this._oRecordSet.getRecord(oRecord);
    }
    else {
        return null;
    }
}
function(row) {
    var oRecord = this._oRecordSet.getRecord(row);

    if(!oRecord) {
        // Validate TR element
        var elRow = this.getTrEl(row);
        if(elRow) {
            oRecord = this._oRecordSet.getRecord(elRow.id);
        }
    }

    if(oRecord instanceof YAHOO.widget.Record) {
        return this._oRecordSet.getRecord(oRecord);
    }
    else {
        return null;
    }
}
function ( row ) { var oRecord = this . _oRecordSet . getRecord ( row ) ; if ( ! oRecord ) { // Validate TR element var elRow = this . getTrEl ( row ) ; if ( elRow ) { oRecord = this . _oRecordSet . getRecord ( elRow . id ) ; } } if ( oRecord instanceof YAHOO . widget . Record ) { return this . _oRecordSet . getRecord ( oRecord ) ; } else { return null ; } }
For the given identifier, returns the associated Record instance.

@method getRecord
@param row {HTMLElement | Number | String} DOM reference to a TR element (or
child of a TR element), RecordSet position index, or Record ID.
@return {YAHOO.widget.Record} Record instance.
For the given identifier returns the associated Record instance .