1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-19 12:52:11 +01:00

Merge pull request #137 from DukeAstar/patch-1

Fix backward compatibility with mDataProp = null
This commit is contained in:
Allan Jardine 2012-12-07 13:46:19 -08:00
commit 70e784d84a

View File

@ -1,5 +1,4 @@
/**
* Add a column to the list used for the table with default values
* @param {object} oSettings dataTables settings object
@ -69,7 +68,7 @@ function _fnColumnOptions( oSettings, iCol, oOptions )
_fnCamelToHungarian( DataTable.defaults.column, oOptions );
/* Backwards compatibility for mDataProp */
if ( oOptions.mDataProp && !oOptions.mData )
if ( oOptions.mDataProp !== undefined && !oOptions.mData )
{
oOptions.mData = oOptions.mDataProp;
}