File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 12851285 function isColumnIgnored ( rowLength , colIndex ) {
12861286 var result = false ;
12871287 if ( defaults . ignoreColumn . length > 0 ) {
1288- if ( typeof defaults . ignoreColumn [ 0 ] == 'string' ) {
1289- if ( colNames . length > colIndex && typeof colNames [ colIndex ] != 'undefined' )
1290- if ( $ . inArray ( colNames [ colIndex ] , defaults . ignoreColumn ) != - 1 )
1291- result = true ;
1292- }
1293- else if ( typeof defaults . ignoreColumn [ 0 ] == 'number' ) {
12941288 if ( $ . inArray ( colIndex , defaults . ignoreColumn ) != - 1 ||
1295- $ . inArray ( colIndex - rowLength , defaults . ignoreColumn ) != - 1 )
1289+ $ . inArray ( colIndex - rowLength , defaults . ignoreColumn ) != - 1 ||
1290+ ( colNames . length > colIndex && typeof colNames [ colIndex ] != 'undefined' &&
1291+ $ . inArray ( colNames [ colIndex ] , defaults . ignoreColumn ) != - 1 ) )
12961292 result = true ;
1297- }
12981293 }
12991294 return result ;
13001295 }
You can’t perform that action at this time.
0 commit comments