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:
parent
55adb2f3d5
commit
a19e1dee12
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user