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

Dev: Use className for the newly created TR - slightly faster than addClass which isn't needed here

This commit is contained in:
Allan Jardine 2012-09-16 11:19:53 +01:00
parent 55adb2f3d5
commit a19e1dee12
2 changed files with 2 additions and 2 deletions

View File

@ -1112,7 +1112,7 @@
if ( oData._aData.DT_RowClass )
{
$(oData.nTr).addClass( oData._aData.DT_RowClass );
oData.nTr.className = oData._aData.DT_RowClass;
}
/* Process each column */

View File

@ -26,7 +26,7 @@ function _fnCreateTr ( oSettings, iRow )
if ( oData._aData.DT_RowClass )
{
$(oData.nTr).addClass( oData._aData.DT_RowClass );
oData.nTr.className = oData._aData.DT_RowClass;
}
/* Process each column */