Skip to content

Commit

Permalink
Updating deserialize function (use of ternary operation). Fixes Polym…
Browse files Browse the repository at this point in the history
  • Loading branch information
ronak1009 committed Jun 22, 2017
1 parent 277ca89 commit ca139ed
Show file tree
Hide file tree
Showing 2 changed files with 6,258 additions and 3 deletions.
4 changes: 1 addition & 3 deletions lib/mixins/property-accessors.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,7 @@
break;

case Date:
if(!isNaN(value)){
value = Number(value);
}
value = isNaN(value) ? String(value) : Number(value);
outValue = new Date(value);
break;

Expand Down
Loading

0 comments on commit ca139ed

Please sign in to comment.