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

Dev fix: Don't throw an error if passing in falsy information for the

settings object getter
This commit is contained in:
Allan Jardine 2014-01-31 13:24:07 +00:00
parent 47c82c52a7
commit e57b905431
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
9a5b697e2900217b62a64cf4baf01148bc134332
31d2e3db4630712b55184fd58abdf2b0b529848a

View File

@ -6363,7 +6363,10 @@
return el.nTable;
} );
if ( mixed.nTable && mixed.oApi ) {
if ( ! mixed ) {
return [];
}
else if ( mixed.nTable && mixed.oApi ) {
// DataTables settings object
return [ mixed ];
}