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:
parent
4ec3b10e3e
commit
dbb51ab117
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user