Replace to_hide and to_show jQuery object with .add result
jQuery.add returns a new jQuery object from the union and do not modify the existing ones.
This commit is contained in:
1 parent
8903615bfa
commit
801d087411
1 file changed
+2
-2
@@ -1027,9 +1027,9 @@
|
||||
var selector = `tr > td:nth-child(${i + offset + 1})`;
|
||||
if ((thead_visible && column.header.is(':hidden')) ||
|
||||
(column.header.css('display') == 'none')) {
|
||||
to_hide.add(this.tbody.find(selector));
|
||||
to_hide = to_hide.add(this.tbody.find(selector));
|
||||
} else {
|
||||
to_show.add(this.tbody.find(selector));
|
||||
to_show = to_show.add(this.tbody.find(selector));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user