From 49b045e7209d1691a60d69a73879c83f1fc5b746 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 22 Jan 2018 13:45:58 +0100 Subject: [PATCH] correctly check if x and y are defined --- public/edit_table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1