1
0
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:
Allan Jardine 2013-05-26 09:05:35 +01:00
parent 34f86db782
commit 1b8f4608ac

View File

@ -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++ )