From f7cc5c03eca0546f806c078a8ff489c6fca4b7eb Mon Sep 17 00:00:00 2001 From: cat Date: Wed, 18 Jun 2014 14:22:11 +0200 Subject: [PATCH] LSP: 0 is not a default unless it's a number --- lsp/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp/main.js b/lsp/main.js index 0d88e038..b6703545 100755 --- a/lsp/main.js +++ b/lsp/main.js @@ -286,7 +286,7 @@ function applyInput(){ var objpath = findObjPath($(this)); - if (($(this).val() == '') || ($(this).val() == 0)) { + if (($(this).val() == '') || (($(this).val() == 0) && ($(this).attr('type') == 'number'))) { eval('delete '+objpath+';'); } else {