I have a DataTables plugin defined as
var oTable = $('#table1').dataTable({
'aaData': data,
'aoColumns': columns,
'bScrollInfinite': true,
'bScrollCollapse': true,
'iDisplayLength': 20,
'sScrollY': '300px'
});
var oTable_Copy = oTable.slice();
Now whenever any value in oTable
changes, the corresponding value also changes in oTable_Copy
. How do I prevent oTable_Copy
from changing?