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

Dev fix: oApi backwards compatiblity issue

- The oApi option wasn't being attached correctly to either the settings
  object or the instance, so plug-ins were breaking. This adds the alias
  back in.
This commit is contained in:
Allan Jardine 2013-07-26 15:55:40 +01:00
parent 175240613b
commit d9ce185f35
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
d4add525406017919895968ede583da9ffc73e0a b4fbf198ab4d7ed709fd4c35dd3201f877408361

View File

@ -5361,7 +5361,7 @@
* (check the upgrade notes). * (check the upgrade notes).
* @namespace * @namespace
*/ */
this.internal = { this.oApi = this.internal = {
"_fnExternApiFunc": _fnExternApiFunc, "_fnExternApiFunc": _fnExternApiFunc,
"_fnInitialise": _fnInitialise, "_fnInitialise": _fnInitialise,
"_fnInitComplete": _fnInitComplete, "_fnInitComplete": _fnInitComplete,
@ -5530,7 +5530,7 @@
/* Create the settings object for this table and set some of the default parameters */ /* Create the settings object for this table and set some of the default parameters */
var oSettings = $.extend( true, {}, DataTable.models.oSettings, { var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
"nTable": this, "nTable": this,
"oApi": _that.oApi, "oApi": _that.internal,
"oInit": oInit, "oInit": oInit,
"sDestroyWidth": $(this)[0].style.width, "sDestroyWidth": $(this)[0].style.width,
"sInstance": sId, "sInstance": sId,