1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Updated: A warning is now given if you pass in aTargets (for aoColumnDefs) as something other than an array (since this is not valid).

This commit is contained in:
Allan Jardine 2010-10-30 06:44:34 +01:00
parent 4ec3b10e3e
commit dbb51ab117

View File

@ -6672,6 +6672,10 @@
{
/* Each column def can target multiple columns, as it is an array */
var aTargets = oInit.aoColumnDefs[i].aTargets;
if ( !$.isArray( aTargets ) )
{
_fnLog( oSettings, 1, 'aTargets must be an array of targets, not a '+(typeof aTargets) );
}
for ( j=0, jLen=aTargets.length ; j<jLen ; j++ )
{
if ( typeof aTargets[j] == 'number' && aTargets[j] >= 0 )