1
0
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:
Allan Jardine 2010-08-22 15:37:36 +01:00
parent ced3b96264
commit 60a2701df0
2 changed files with 4 additions and 3 deletions

View File

@ -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>

View File

@ -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 );
}