Permalink
Browse files

Fix #145

  • Loading branch information...
1 parent 36ba254 commit 0ad4b2052d15adb82a787b78f7b830644fbf5219 @zba committed Jan 7, 2013
Showing with 8 additions and 0 deletions.
  1. +4 −0 media/js/jquery.dataTables.js
  2. +4 −0 media/src/core/core.data.js
@@ -553,6 +553,10 @@
oSettings.aoData.push( $.extend( true, {}, DataTable.models.oRow, {
"nTr": nTr
} ) );
+ //force _aData to be object in case of defined mData;
+ if (oSettings.aoColumns[iThisIndex].mData!==undefined) {
+ oSettings.aoData[oSettings.aoData.length-1]._aData={};
+ }
oSettings.aiDisplayMaster.push( iThisIndex );
nTd = nTr.firstChild;
@@ -101,6 +101,10 @@ function _fnGatherData( oSettings )
oSettings.aoData.push( $.extend( true, {}, DataTable.models.oRow, {
"nTr": nTr
} ) );
+ //force _aData to be object in case of defined mData;
+ if (oSettings.aoColumns[iThisIndex].mData!==undefined) {
+ oSettings.aoData[oSettings.aoData.length-1]._aData={};
+ }
oSettings.aiDisplayMaster.push( iThisIndex );
nTd = nTr.firstChild;

0 comments on commit 0ad4b20

Please sign in to comment.