mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-18 16:54:14 +01:00
Update: Bring the mDataProp as a function functionality to parity for Ajax / JS sourced data and DOM sourced data. Previously DOM sourced data would call the 'set' option for the mDataProp function but Ajax/JS sourced data would not, resulting in the set option never being called for those table types, which is a total bummer when you want to do some formatting in the set option. So now it is called. I was slightly conerned about the performance hit since this means a couple of extra function calls for each cell, but its all in JS, no DOM and I can see virtally no difference with about 50'000 rows and 5 columns of data, so acceptable for the benefits.
This commit is contained in:
parent
513d6d5440
commit
814ce1f7d5
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -460,6 +460,10 @@
|
||||
{
|
||||
_fnSetCellData( oSettings, iRow, i, _fnRender(oSettings, iRow, i) );
|
||||
}
|
||||
else
|
||||
{
|
||||
_fnSetCellData( oSettings, iRow, i, _fnGetCellData( oSettings, iRow, i ) );
|
||||
}
|
||||
|
||||
/* See if we should auto-detect the column type */
|
||||
if ( oCol._bAutoType && oCol.sType != 'string' )
|
||||
|
@ -35,6 +35,10 @@ function _fnAddData ( oSettings, aDataSupplied )
|
||||
{
|
||||
_fnSetCellData( oSettings, iRow, i, _fnRender(oSettings, iRow, i) );
|
||||
}
|
||||
else
|
||||
{
|
||||
_fnSetCellData( oSettings, iRow, i, _fnGetCellData( oSettings, iRow, i ) );
|
||||
}
|
||||
|
||||
/* See if we should auto-detect the column type */
|
||||
if ( oCol._bAutoType && oCol.sType != 'string' )
|
||||
|
Loading…
x
Reference in New Issue
Block a user