1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00

New: Expose $.fn.dataTable.camelToHungarian as a static function which

can be used by plug-ins
This commit is contained in:
Allan Jardine 2014-01-31 13:23:52 +00:00
parent e83eacff6d
commit 47c82c52a7
2 changed files with 17 additions and 1 deletions

View File

@ -1 +1 @@
1aed342ecf2227b337f295712c9f43b09dadedb8
9a5b697e2900217b62a64cf4baf01148bc134332

View File

@ -8453,6 +8453,22 @@
};
/**
* Convert from camel case parameters to Hungarian notation. This is made public
* for the extensions to provide the same ability as DataTables core to accept
* either the 1.9 style Hungarian notation, or the 1.10+ style camelCase
* parameters.
*
* @param {object} src The model object which holds all parameters that can be
* mapped.
* @param {object} user The object to convert from camel case to Hungarian.
* @param {boolean} force When set to `true`, properties which already have a
* Hungarian value in the `user` object will be overwritten. Otherwise they
* won't be.
*/
DataTable.camelToHungarian = _fnCamelToHungarian;
/**
*