media/jquery/tablesorter-master/js/widgets/widget-vertical-group.js
Function verticalGroup
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function verticalGroup( table, c, wo, init ) {
// -------------------------------------------------------------------------
// loop thru the header row,
// - look for .vertical-group
//
Avoid deeply nested control flow statements. Open
Open
if ( has_zebra ) {
// only adjust striping based on the first sorted column
setZebra( wo, $cell, isSorted ? zebra_index : ++zebra_index );
}
Avoid deeply nested control flow statements. Open
Open
if ( !$cell.hasClass( tscss.verticalGroupShow ) ) {
$cell.addClass( tscss.verticalGroupShow );
}