mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Merge pull request #137 from DukeAstar/patch-1
Fix backward compatibility with mDataProp = null
This commit is contained in:
commit
70e784d84a
@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a column to the list used for the table with default values
|
* Add a column to the list used for the table with default values
|
||||||
* @param {object} oSettings dataTables settings object
|
* @param {object} oSettings dataTables settings object
|
||||||
@ -69,7 +68,7 @@ function _fnColumnOptions( oSettings, iCol, oOptions )
|
|||||||
_fnCamelToHungarian( DataTable.defaults.column, oOptions );
|
_fnCamelToHungarian( DataTable.defaults.column, oOptions );
|
||||||
|
|
||||||
/* Backwards compatibility for mDataProp */
|
/* Backwards compatibility for mDataProp */
|
||||||
if ( oOptions.mDataProp && !oOptions.mData )
|
if ( oOptions.mDataProp !== undefined && !oOptions.mData )
|
||||||
{
|
{
|
||||||
oOptions.mData = oOptions.mDataProp;
|
oOptions.mData = oOptions.mDataProp;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user