From 501324a59050b2fb352f4d0099080775dfe8f8ab Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 8 Mar 2011 19:29:38 +0000 Subject: [PATCH] Fix: Commit c01dda2a600571f7c98c introduced a global variable to DataTables in fnGetData and fnGetNodes. This commit fixes that while keeping the introduced feature. --- media/js/jquery.dataTables.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index afd43aca..8b865a21 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -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 ); };