mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-03 15:24:10 +01:00
Merge pull request #53 from thegrandpoobah/remove_cruft
Remove cruft from fnSetColumnVis and fnUpdate
This commit is contained in:
commit
608f872950
@ -978,7 +978,7 @@ this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
|
|||||||
var i, iLen;
|
var i, iLen;
|
||||||
var aoColumns = oSettings.aoColumns;
|
var aoColumns = oSettings.aoColumns;
|
||||||
var aoData = oSettings.aoData;
|
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 */
|
/* No point in doing anything if we are requesting what is already true */
|
||||||
if ( aoColumns[iCol].bVisible == bShow )
|
if ( aoColumns[iCol].bVisible == bShow )
|
||||||
@ -1164,7 +1164,7 @@ this.fnSortListener = function( nNode, iColumn, fnCallback )
|
|||||||
this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
|
this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
|
||||||
{
|
{
|
||||||
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
||||||
var iVisibleColumn, i, iLen, sDisplay;
|
var i, iLen, sDisplay;
|
||||||
var iRow = (typeof mRow === 'object') ?
|
var iRow = (typeof mRow === 'object') ?
|
||||||
_fnNodeToDataIndex(oSettings, mRow) : mRow;
|
_fnNodeToDataIndex(oSettings, mRow) : mRow;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user