mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Update: Allow targets
(aTargets
as it was formally known) to be a
non-array element - If found to be something other than an array, it will treat it as if it were an array with a single element in it, of the value given.
This commit is contained in:
parent
34f86db782
commit
1b8f4608ac
@ -302,7 +302,7 @@ function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
|
||||
var aTargets = aoColDefs[i].targets || aoColDefs[i].aTargets;
|
||||
if ( ! $.isArray( aTargets ) )
|
||||
{
|
||||
_fnLog( oSettings, 1, 'aTargets must be an array of targets, not a '+(typeof aTargets) );
|
||||
aTargets = [ aTargets ];
|
||||
}
|
||||
|
||||
for ( j=0, jLen=aTargets.length ; j<jLen ; j++ )
|
||||
|
Loading…
x
Reference in New Issue
Block a user