logo

blog

My little blog can’t be this cute! git clone https://hacktivis.me/git/blog.git
commit: 109a36497bfd7df41e85bf636ae15b097ce89bf6
parent 60a190530adf6d834348d90ef9234782169b8242
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 24 Dec 2018 03:19:24 +0100

javascript/sorttable.js: Use null instead of -9999

Diffstat:

Mjavascript/sorttable.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/javascript/sorttable.js b/javascript/sorttable.js @@ -77,7 +77,7 @@ sorttable = { // Example: <td data-value="1337">Leet</td> getElementValue : function(element) { if(element === undefined) { - return -9999; + return "\u0000"; // null console.log("Warning: Empty cells found"); } if (element.dataset.value) {