Permalink
Browse files

Fix backward compatibility with mDataProp = null

  • Loading branch information...
1 parent c74db5a commit d9bb6b63cd5f5f8ab692ba0e1913a56b0772ae2c @DukeAstar DukeAstar committed Dec 7, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 media/src/core/core.columns.js
@@ -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;
}

0 comments on commit d9bb6b6

Please sign in to comment.