1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Fix: fnGetData returning all rows when trying to get row 0

This commit is contained in:
Allan Jardine 2012-01-08 09:52:41 +00:00
parent 7ae342dc7d
commit 25d5ab4bed
2 changed files with 2 additions and 2 deletions

View File

@ -5365,7 +5365,7 @@
{
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
if ( mRow )
if ( mRow !== undefined )
{
var iRow = (typeof mRow === 'object') ?
_fnNodeToDataIndex(oSettings, mRow) : mRow;

View File

@ -626,7 +626,7 @@ this.fnGetData = function( mRow, iCol )
{
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
if ( mRow )
if ( mRow !== undefined )
{
var iRow = (typeof mRow === 'object') ?
_fnNodeToDataIndex(oSettings, mRow) : mRow;