mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Modified stickyHeaderWidget for better performance
Don't call the checkSizes function anymore on disabling the sticky Header via addHeaderResizeEvent(table, true); It was an unneccesary performance loss as the gained data wasn't used afterwards.
This commit is contained in:
parent
9807a4f907
commit
ec1a2a7cf3
@ -43,12 +43,12 @@
|
||||
}
|
||||
wo.resize_flag = false;
|
||||
};
|
||||
checkSizes( false );
|
||||
clearInterval(wo.resize_timer);
|
||||
if (disable) {
|
||||
wo.resize_flag = false;
|
||||
return false;
|
||||
}
|
||||
checkSizes( false );
|
||||
wo.resize_timer = setInterval(function() {
|
||||
if (wo.resize_flag) { return; }
|
||||
checkSizes();
|
||||
|
Loading…
Reference in New Issue
Block a user