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:
parent
0ff0858734
commit
c883cdac54
3
media/js/jquery.dataTables.js
vendored
3
media/js/jquery.dataTables.js
vendored
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user