1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

DataTables 1.9.0.dev.4

Fix: Multiple tables were going haywire on initialisation due to the self reference - 8233
This commit is contained in:
Allan Jardine 2012-01-25 19:44:05 +00:00
parent 937811f09c
commit 8c8ddc0485
4 changed files with 13 additions and 7 deletions

View File

@ -1,7 +1,7 @@
/**
* @summary DataTables
* @description Paginate, search and sort HTML tables
* @version 1.9.0.beta.3
* @version 1.9.0.dev.4
* @file jquery.dataTables.js
* @author Allan Jardine (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
@ -6143,13 +6143,16 @@
"nTable": this,
"oApi": _that.oApi,
"oInit": oInit,
"oInstance": (_that.length===1) ? _that : $(this).dataTable(),
"sDestroyWidth": $(this).width(),
"sInstance": sId,
"sTableId": sId
} );
DataTable.settings.push( oSettings );
// Need to add the instance after the instance after the settings object has been added
// to the settings array, so we can self reference the table instance if more than one
oSettings.oInstance = (_that.length===1) ? _that : $(this).dataTable();
/* Setting up the initialisation object */
if ( !oInit )
{
@ -6505,7 +6508,7 @@
* @type string
* @default Version number
*/
DataTable.version = "1.9.0.beta.3";
DataTable.version = "1.9.0.dev.4";
/**
* Private data store, containing all of the settings objects that are created for the

View File

@ -1,7 +1,7 @@
/**
* @summary DataTables
* @description Paginate, search and sort HTML tables
* @version 1.9.0.beta.3
* @version 1.9.0.dev.4
* @file jquery.dataTables.js
* @author Allan Jardine (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
@ -91,7 +91,7 @@
* @type string
* @default Version number
*/
DataTable.version = "1.9.0.beta.3";
DataTable.version = "1.9.0.dev.4";
/**
* Private data store, containing all of the settings objects that are created for the

View File

@ -61,13 +61,16 @@ var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
"nTable": this,
"oApi": _that.oApi,
"oInit": oInit,
"oInstance": (_that.length===1) ? _that : $(this).dataTable(),
"sDestroyWidth": $(this).width(),
"sInstance": sId,
"sTableId": sId
} );
DataTable.settings.push( oSettings );
// Need to add the instance after the instance after the settings object has been added
// to the settings array, so we can self reference the table instance if more than one
oSettings.oInstance = (_that.length===1) ? _that : $(this).dataTable();
/* Setting up the initialisation object */
if ( !oInit )
{

View File

@ -1,6 +1,6 @@
{
"name": "DataTables",
"version": "1.9.0.beta.3",
"version": "1.9.0.dev.4",
"title": "DataTables",
"author": {
"name": "Allan Jardine",