diff --git a/js/jquery.tablesorter.widgets.js b/js/jquery.tablesorter.widgets.js index bcc4603a..b4243d70 100644 --- a/js/jquery.tablesorter.widgets.js +++ b/js/jquery.tablesorter.widgets.js @@ -1529,7 +1529,7 @@ ts.addWidget({ return; } var $table = c.$table, - $attach = $(wo.stickyHeaders_attachTo), + $attach = $(wo.stickyHeaders_attachTo || 'window'), $thead = $table.children('thead:first'), $win = $attach.length ? $attach : $(window), $header = $thead.children('tr').not('.sticky-false').children(),