mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Resolved Issue #60
This commit is contained in:
parent
9c14ba1b9d
commit
6d16a533fe
2 changed files with 8 additions and 8 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue