mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Core: Fix option validator issues
This commit is contained in:
parent
95251fd21a
commit
5a6d0ae3cb
@ -2408,7 +2408,7 @@
|
||||
validateOptions : function( c ) {
|
||||
var setting, setting2, typ, timer,
|
||||
// ignore options containing an array
|
||||
ignore = 'sortForce sortList sortAppend widgets'.split( ' ' ),
|
||||
ignore = 'headers sortForce sortList sortAppend widgets'.split( ' ' ),
|
||||
orig = c.originalSettings;
|
||||
if ( orig ) {
|
||||
if ( c.debug ) {
|
||||
@ -2420,7 +2420,7 @@
|
||||
console.warn( 'Tablesorter Warning! "table.config.' + setting + '" option not recognized' );
|
||||
} else if ( typ === 'object' ) {
|
||||
for ( setting2 in orig[setting] ) {
|
||||
typ = typeof ts.defaults[setting][setting2];
|
||||
typ = ts.defaults[setting] && typeof ts.defaults[setting][setting2];
|
||||
if ( $.inArray( setting, ignore ) < 0 && typ === 'undefined' ) {
|
||||
console.warn( 'Tablesorter Warning! "table.config.' + setting + '.' + setting2 + '" option not recognized' );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user