1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00

Fix: Multiple column options for a single column could cause custom type

to be lost

- Without a check on the `sType` option, if there was multiple column
  defintations for a single column, the custom sType could be lost
This commit is contained in:
Allan Jardine 2014-03-24 15:16:00 +00:00
parent 6924ccb237
commit 9fda4f3a3d
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
d50b5585426b88bb0d3942949cd5d7238dc441ec
4615e4e248f4c3ac97821bb1c27c6c1c9962a1f9

View File

@ -586,7 +586,10 @@
oOptions.mData = oOptions.mDataProp;
}
oCol._sManualType = oOptions.sType;
if ( oOptions.sType )
{
oCol._sManualType = oOptions.sType;
}
// `class` is a reserved word in Javascript, so we need to provide
// the ability to use a valid name for the camel case input