Resolved Issue #60

This commit is contained in:
djmaze 2021-03-12 23:54:47 +01:00
parent 9c14ba1b9d
commit 6d16a533fe
2 changed files with 8 additions and 8 deletions

View file

@ -8,7 +8,7 @@ function dispose(disposable) {
function typeCast(curValue, newValue) {
switch (typeof curValue)
{
case 'boolean': return !!newValue;
case 'boolean': return 0 != newValue && !!newValue;
case 'number': return isFinite(newValue) ? parseFloat(newValue) : 0;
case 'string': return null != newValue ? '' + newValue : '';
case 'object':