Skip to content

Commit ca139ed

Browse files
committed
Updating deserialize function (use of ternary operation). Fixes #4696
1 parent 277ca89 commit ca139ed

File tree

2 files changed

+6258
-3
lines changed

2 files changed

+6258
-3
lines changed

lib/mixins/property-accessors.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,7 @@
344344
break;
345345

346346
case Date:
347-
if(!isNaN(value)){
348-
value = Number(value);
349-
}
347+
value = isNaN(value) ? String(value) : Number(value);
350348
outValue = new Date(value);
351349
break;
352350

0 commit comments

Comments
 (0)