public/javascripts/yui/datatable/datatable.js
function(oArgs) {
    var elTarget = oArgs.target;

    // Validate target row
    var elTargetRow = this.getTrEl(elTarget);
    if(elTargetRow) {
        var oTargetRecord = this.getRecord(elTargetRow);

        // Set anchor
        this._oAnchorRecord = oTargetRecord;

        // Select only target
        this.unselectAllRows();
        this.selectRow(oTargetRecord);
    }
}
function(oArgs) {
    var elTarget = oArgs.target;

    // Validate target row
    var elTargetRow = this.getTrEl(elTarget);
    if(elTargetRow) {
        var oTargetRecord = this.getRecord(elTargetRow);

        // Set anchor
        this._oAnchorRecord = oTargetRecord;

        // Select only target
        this.unselectAllRows();
        this.selectRow(oTargetRecord);
    }
}
function ( oArgs ) { var elTarget = oArgs . target ; // Validate target row var elTargetRow = this . getTrEl ( elTarget ) ; if ( elTargetRow ) { var oTargetRecord = this . getRecord ( elTargetRow ) ; // Set anchor this . _oAnchorRecord = oTargetRecord ; // Select only target this . unselectAllRows ( ) ; this . selectRow ( oTargetRecord ) ; } }
Determines selection behavior resulting from a mouse event when selection mode
is set to "single".

@method _handleSingleSelectionByMouse
@param oArgs.event {HTMLEvent} Event object.
@param oArgs.target {HTMLElement} Target element.
@private
Determines selection behavior resulting from a mouse event when selection mode is set to single .