Permalink
Browse files

Dev: Fix issue with the moved oInit defaults copy - couldn't get a re…

…ference to an exisiting DataTable
  • Loading branch information...
1 parent 0ff0858 commit c883cdac54878e121dc526557d1d7b44befc2173 @DataTables committed Oct 31, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 media/js/jquery.dataTables.js
  2. +2 −1 media/src/core/core.constructor.js
@@ -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;
}

0 comments on commit c883cda

Please sign in to comment.