1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-20 18:54:15 +01:00

Dev fix: Adding _fnCalculateEnd as a stub to the oApi object for

plug-ins

- A lot of plug-ins use _fnCalculateEnd and although all that is needed
  in the upgrade is to remove it, since the value is calculated
  automatically now, it will likely cause confusion and hassle. So I've
  added this stub to prevent those errors.
This commit is contained in:
Allan Jardine 2014-01-14 15:49:03 +00:00
parent 734607635a
commit d60ddf211c
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
1f4688ea66aa148745212b66562aa3508ee15b98
cb61595d78d0d87c1ab15bfdb1b3200de6549fa5

View File

@ -5783,7 +5783,10 @@
_fnLengthOverflow: _fnLengthOverflow,
_fnRenderer: _fnRenderer,
_fnDataSource: _fnDataSource,
_fnRowAttributes: _fnRowAttributes
_fnRowAttributes: _fnRowAttributes,
_fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant
// in 1.10, so this dead-end function is
// added to prevent errors
};
$.extend( DataTable.ext.internal, this.internal );