mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-15 16:29:16 +01:00
Fix - performance: Don't extend the passed in data a second time - its a waste of time
This commit is contained in:
parent
126a4fe44e
commit
5479600611
5
media/js/jquery.dataTables.js
vendored
5
media/js/jquery.dataTables.js
vendored
@ -445,9 +445,8 @@
|
|||||||
|
|
||||||
/* Create the object for storing information about this new row */
|
/* Create the object for storing information about this new row */
|
||||||
var iRow = oSettings.aoData.length;
|
var iRow = oSettings.aoData.length;
|
||||||
var oData = $.extend( true, {}, DataTable.models.oRow, {
|
var oData = $.extend( true, {}, DataTable.models.oRow );
|
||||||
"_aData": aDataIn
|
oData._aData = aDataIn;
|
||||||
} );
|
|
||||||
oSettings.aoData.push( oData );
|
oSettings.aoData.push( oData );
|
||||||
|
|
||||||
/* Create the cells */
|
/* Create the cells */
|
||||||
|
@ -20,9 +20,8 @@ function _fnAddData ( oSettings, aDataSupplied )
|
|||||||
|
|
||||||
/* Create the object for storing information about this new row */
|
/* Create the object for storing information about this new row */
|
||||||
var iRow = oSettings.aoData.length;
|
var iRow = oSettings.aoData.length;
|
||||||
var oData = $.extend( true, {}, DataTable.models.oRow, {
|
var oData = $.extend( true, {}, DataTable.models.oRow );
|
||||||
"_aData": aDataIn
|
oData._aData = aDataIn;
|
||||||
} );
|
|
||||||
oSettings.aoData.push( oData );
|
oSettings.aoData.push( oData );
|
||||||
|
|
||||||
/* Create the cells */
|
/* Create the cells */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user