Skip to content

Commit b2c8747

Browse files
Update to 1.18.2.
1 parent 30c6cca commit b2c8747

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed
28 Bytes
Binary file not shown.

browser-extensions/chrome/table-sort.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
2626
const [getTagTable] = getHTMLTables();
2727
const columnIndexAndTableRow = {};
2828
for (let table of getTagTable) {
29-
if (table.classList.contains("table-sort")) {
29+
if (
30+
table.classList.contains("table-sort") &&
31+
!table.classList.contains("table-processed")
32+
) {
3033
makeTableSortable(table);
3134
}
3235
}
@@ -114,6 +117,7 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
114117
}
115118

116119
function makeTableSortable(sortableTable) {
120+
sortableTable.classList.add("table-processed");
117121
const table = {
118122
bodies: getTableBodies(sortableTable),
119123
theads: sortableTable.querySelectorAll("thead"),
28 Bytes
Binary file not shown.

browser-extensions/firefox/table-sort.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
2626
const [getTagTable] = getHTMLTables();
2727
const columnIndexAndTableRow = {};
2828
for (let table of getTagTable) {
29-
if (table.classList.contains("table-sort")) {
29+
if (
30+
table.classList.contains("table-sort") &&
31+
!table.classList.contains("table-processed")
32+
) {
3033
makeTableSortable(table);
3134
}
3235
}
@@ -114,6 +117,7 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
114117
}
115118

116119
function makeTableSortable(sortableTable) {
120+
sortableTable.classList.add("table-processed");
117121
const table = {
118122
bodies: getTableBodies(sortableTable),
119123
theads: sortableTable.querySelectorAll("thead"),

npm/table-sort.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
2626
const [getTagTable] = getHTMLTables();
2727
const columnIndexAndTableRow = {};
2828
for (let table of getTagTable) {
29-
if (table.classList.contains("table-sort")) {
29+
if (
30+
table.classList.contains("table-sort") &&
31+
!table.classList.contains("table-processed")
32+
) {
3033
makeTableSortable(table);
3134
}
3235
}
@@ -114,6 +117,7 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
114117
}
115118

116119
function makeTableSortable(sortableTable) {
120+
sortableTable.classList.add("table-processed");
117121
const table = {
118122
bodies: getTableBodies(sortableTable),
119123
theads: sortableTable.querySelectorAll("thead"),

public/table-sort.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
2626
const [getTagTable] = getHTMLTables();
2727
const columnIndexAndTableRow = {};
2828
for (let table of getTagTable) {
29-
if (table.classList.contains("table-sort") && !table.classList.contains("table-processed")) {
29+
if (
30+
table.classList.contains("table-sort") &&
31+
!table.classList.contains("table-processed")
32+
) {
3033
makeTableSortable(table);
3134
}
3235
}
@@ -113,7 +116,7 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
113116
}
114117
}
115118

116-
function makeTableSortable(sortableTable) {
119+
function makeTableSortable(sortableTable) {
117120
sortableTable.classList.add("table-processed");
118121
const table = {
119122
bodies: getTableBodies(sortableTable),

0 commit comments

Comments
 (0)