mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
Dev fix: Converting camelCase to hungarian was broken
This commit is contained in:
parent
1a0551fd2c
commit
6cac556b6a
@ -1 +1 @@
|
||||
7af80a12efe4be1d7426868b736c93afc8dc0ded
|
||||
27bfabdcecb11ea4891db9e8ff07eca4a2b5673e
|
||||
|
11
media/js/jquery.dataTables.js
vendored
11
media/js/jquery.dataTables.js
vendored
@ -344,12 +344,19 @@
|
||||
|
||||
if ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) )
|
||||
{
|
||||
// For objects, we need to buzz down into the object to copy parameters
|
||||
if ( hungarianKey.charAt(0) === 'o' )
|
||||
{
|
||||
_fnCamelToHungarian( src[hungarianKey], user[key] );
|
||||
// Copy the camelCase options over to the hungarian
|
||||
if ( ! user[ hungarianKey ] ) {
|
||||
user[ hungarianKey ] = {};
|
||||
}
|
||||
$.extend( true, user[hungarianKey], user[key] );
|
||||
|
||||
_fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );
|
||||
}
|
||||
else {
|
||||
src[hungarianKey] = user[ key ];
|
||||
user[hungarianKey] = user[ key ];
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user