1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-19 17:54:14 +01:00

Fix: Commit c01dda2a600571f7c98c introduced a global variable to DataTables in fnGetData and fnGetNodes. This commit fixes that while keeping the introduced feature.

This commit is contained in:
Allan Jardine 2011-03-08 19:29:38 +00:00
parent 789a6876f0
commit 501324a590

View File

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