logo

blog

My little blog can’t be this cute! git clone https://hacktivis.me/git/blog.git
commit: 78cd789b6f9536465e2634e30b5ef7b5cf68444a
parent 7d8cc76f0d0144ac4764865eebfa02e8c6970c32
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  9 Dec 2020 12:49:45 +0100

sorttable.js: Remove `delete row_array` (UndefinedBehavior)

Diffstat:

Mjavascript/sorttable.js1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/javascript/sorttable.js b/javascript/sorttable.js @@ -70,7 +70,6 @@ sorttable = { row_array.sort().reverse(); tb = tr.sorttable_tbody; row_array.forEach(function(row) { tb.appendChild(row[1]); }); - delete row_array; tr.classList.add('sorttable_sorted'); } },