mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-28 10:24:10 +01:00
Updated: Change to fnClearTable to clear the arrays in a cleaner manner
This commit is contained in:
parent
ced3b96264
commit
60a2701df0
@ -28,6 +28,7 @@
|
||||
|
||||
<h1>Live example</h1>
|
||||
<div id="demo">
|
||||
<div id="me"></div>
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
|
6
media/js/jquery.dataTables.js
vendored
6
media/js/jquery.dataTables.js
vendored
@ -5616,9 +5616,9 @@
|
||||
*/
|
||||
function _fnClearTable( oSettings )
|
||||
{
|
||||
oSettings.aoData.length = 0;
|
||||
oSettings.aiDisplayMaster.length = 0;
|
||||
oSettings.aiDisplay.length = 0;
|
||||
oSettings.aoData.splice( 0, oSettings.aoData.length );
|
||||
oSettings.aiDisplayMaster.splice( 0, oSettings.aiDisplayMaster.length );
|
||||
oSettings.aiDisplay.splice( 0, oSettings.aiDisplay.length );
|
||||
_fnCalculateEnd( oSettings );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user