1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-28 10:24:10 +01:00

Fixed: fnGetData and fnGetNodes to return null when a row number is passed in that is out of the table's range.

Signed-off-by: Allan Jardine <allan.jardine@sprymedia.co.uk>
This commit is contained in:
Brian Abreu 2011-02-16 16:50:49 -08:00 committed by Allan Jardine
parent 6641866868
commit c01dda2a60

View File

@ -1762,7 +1762,7 @@
{
var iRow = (typeof mRow == 'object') ?
_fnNodeToDataIndex(oSettings, mRow) : mRow;
return oSettings.aoData[iRow]._aData;
return ( (aRowData = oSettings.aoData[iRow]) ? aRowData._aData : null);
}
return _fnGetDataMaster( oSettings );
};
@ -1782,7 +1782,7 @@
if ( typeof iRow != 'undefined' )
{
return oSettings.aoData[iRow].nTr;
return ( (aRowData = oSettings.aoData[iRow]) ? aRowData.nTr : null );
}
return _fnGetTrNodes( oSettings );
};