mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-18 16:54:14 +01:00
Updated: Remove the sanity check for cols x rows === cells - we can't get to this code anymore due to the fnSetCellData check (that throws an error first), so this is dead code.
This commit is contained in:
parent
11557abf0d
commit
aeed78a08c
8
media/js/jquery.dataTables.js
vendored
8
media/js/jquery.dataTables.js
vendored
@ -567,14 +567,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Sanity check */
|
||||
if ( nTds.length != nTrs.length * oSettings.aoColumns.length )
|
||||
{
|
||||
_fnLog( oSettings, 1, "Unexpected number of TD elements. Expected "+
|
||||
(nTrs.length * oSettings.aoColumns.length)+" and got "+nTds.length+". DataTables does "+
|
||||
"not support rowspan / colspan in the table body." );
|
||||
}
|
||||
|
||||
/* Now process by column */
|
||||
for ( iColumn=0, iColumns=oSettings.aoColumns.length ; iColumn<iColumns ; iColumn++ )
|
||||
{
|
||||
|
@ -142,14 +142,6 @@ function _fnGatherData( oSettings )
|
||||
}
|
||||
}
|
||||
|
||||
/* Sanity check */
|
||||
if ( nTds.length != nTrs.length * oSettings.aoColumns.length )
|
||||
{
|
||||
_fnLog( oSettings, 1, "Unexpected number of TD elements. Expected "+
|
||||
(nTrs.length * oSettings.aoColumns.length)+" and got "+nTds.length+". DataTables does "+
|
||||
"not support rowspan / colspan in the table body." );
|
||||
}
|
||||
|
||||
/* Now process by column */
|
||||
for ( iColumn=0, iColumns=oSettings.aoColumns.length ; iColumn<iColumns ; iColumn++ )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user