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

Merge pull request #53 from thegrandpoobah/remove_cruft

Remove cruft from fnSetColumnVis and fnUpdate
This commit is contained in:
Allan Jardine 2012-03-06 09:57:25 -08:00
commit 608f872950

View File

@ -978,7 +978,7 @@ this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
var i, iLen;
var aoColumns = oSettings.aoColumns;
var aoData = oSettings.aoData;
var nTd, nCell, anTrs, jqChildren, bAppend, iBefore;
var nTd, bAppend, iBefore;
/* No point in doing anything if we are requesting what is already true */
if ( aoColumns[iCol].bVisible == bShow )
@ -1164,7 +1164,7 @@ this.fnSortListener = function( nNode, iColumn, fnCallback )
this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
{
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
var iVisibleColumn, i, iLen, sDisplay;
var i, iLen, sDisplay;
var iRow = (typeof mRow === 'object') ?
_fnNodeToDataIndex(oSettings, mRow) : mRow;