Fixes "undefined" initial parameters when initial: 0. The problem was that 0 is falsy and so def.initial || def['default'] || def.checked would skip it. Changed to check for !== undefined.
Fix bug when loading "all parameters" demo (see jscad.app now). For a choice parameter, captions is optional.
This PR primarily fixes two bugs:
initial: 0
. The problem was that0
is falsy and sodef.initial || def['default'] || def.checked
would skip it. Changed to check for!== undefined
.captions
is optional.Some additional minor fixes:
formValue
andfillForm
functions