1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Dev: Fix issue with the moved oInit defaults copy - couldn't get a reference to an exisiting DataTable

This commit is contained in:
Allan Jardine 2012-10-31 15:42:09 +00:00
parent 0ff0858734
commit c883cdac54
2 changed files with 4 additions and 2 deletions

View File

@ -6270,6 +6270,7 @@
var sId = this.getAttribute( 'id' );
var bInitHandedOff = false;
var bUsePassedData = false;
var oInitEmpty = oInit === undefined ? true : false;
/* Sanity check */
@ -6297,7 +6298,7 @@
/* Base check on table node */
if ( DataTable.settings[i].nTable == this )
{
if ( oInit === undefined || oInit.bRetrieve )
if ( oInitEmpty || oInit.bRetrieve )
{
return DataTable.settings[i].oInstance;
}

View File

@ -2,6 +2,7 @@ var i=0, iLen, j, jLen, k, kLen;
var sId = this.getAttribute( 'id' );
var bInitHandedOff = false;
var bUsePassedData = false;
var oInitEmpty = oInit === undefined ? true : false;
/* Sanity check */
@ -29,7 +30,7 @@ for ( i=0, iLen=DataTable.settings.length ; i<iLen ; i++ )
/* Base check on table node */
if ( DataTable.settings[i].nTable == this )
{
if ( oInit === undefined || oInit.bRetrieve )
if ( oInitEmpty || oInit.bRetrieve )
{
return DataTable.settings[i].oInstance;
}