From: Dobrica Pavlinusic Date: Mon, 22 Jan 2018 12:45:58 +0000 (+0100) Subject: correctly check if x and y are defined X-Git-Url: http://git.rot13.org/?p=MojoFacets.git;a=commitdiff_plain;h=49b045e7209d1691a60d69a73879c83f1fc5b746 correctly check if x and y are defined --- diff --git a/public/edit_table.js b/public/edit_table.js index 9914a3c..f57f833 100644 --- a/public/edit_table.js +++ b/public/edit_table.js @@ -16,7 +16,7 @@ var cell_blur = function() { var x = $(this).parent().index(); var y = $(this).parent().parent().index(); - if ( ! x || ! y ) { + if ( x == null || y == null ) { console.error('no x ', x, ' or y ', y, ' defined'); return; }