diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 9fe242eb..ea1bd836 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -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 diff --git a/media/src/DataTables.js b/media/src/DataTables.js index 4b61e2e7..c3e12738 100644 --- a/media/src/DataTables.js +++ b/media/src/DataTables.js @@ -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 diff --git a/media/src/core/core.constructor.js b/media/src/core/core.constructor.js index 2bd6fe62..1100d048 100644 --- a/media/src/core/core.constructor.js +++ b/media/src/core/core.constructor.js @@ -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 ) { diff --git a/package.json b/package.json index 9dee0c86..da7b3918 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "DataTables", - "version": "1.9.0.beta.3", + "version": "1.9.0.dev.4", "title": "DataTables", "author": { "name": "Allan Jardine",