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:
parent
6641866868
commit
c01dda2a60
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -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 );
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user