LSP: 0 is not a default unless it's a number

This commit is contained in:
cat 2014-06-18 14:22:11 +02:00 committed by Thulinma
parent a2ab708aef
commit f7cc5c03ec

View file

@ -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 {