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

Dev fix: iDataSort and aDataSort conflicting on camelCase

- Simple fix is to check if it is a number or not
This commit is contained in:
Allan Jardine 2013-10-09 14:56:12 +01:00
parent 8573d5955c
commit 6bd699b537
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
4e31fb7585a9b338257edd8472de37255f924a0d
41d498be3fc7e9d78db83ceb1b4715d6688030f8

View File

@ -296,7 +296,7 @@
/* iDataSort to be applied (backwards compatibility), but aDataSort will take
* priority if defined
*/
if ( oOptions.iDataSort !== undefined )
if ( typeof oOptions.iDataSort === 'number' )
{
oCol.aDataSort = [ oOptions.iDataSort ];
}