Core: Use indexed headers. Fixes #1524

This commit is contained in:
Rob Garrison 2018-04-30 16:23:17 -05:00
parent 5e4ab3b843
commit 38b4c8d9d5

View File

@ -520,7 +520,7 @@
$cell = ts.getClosest( $( this ), '.' + ts.css.header );
// use column index from data-attribute or index of current row; fixes #1116
c.last.clickedIndex = $cell.attr( 'data-column' ) || $cell.index();
cell = c.$headers[ c.last.clickedIndex ];
cell = c.$headerIndexed[ c.last.clickedIndex ];
if ( cell && !cell.sortDisabled ) {
ts.initSort( c, cell, e );
}