Skip to content

Commit

Permalink
do not consider null valued prototype an indicator that a property sh…
Browse files Browse the repository at this point in the history
…ould be deserialized as an object.
  • Loading branch information
sorvell committed Aug 1, 2013
1 parent 0f96e27 commit 6e0338c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/deserialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
return (String(floatVal) === value) ? floatVal : value;
},
'object': function(value, defaultValue) {
if (defaultValue === null) {
return value;
}
try {
// If the string is an object, we can parse is with the JSON library.
// include convenience replace for single-quotes. If the author omits
Expand Down

0 comments on commit 6e0338c

Please sign in to comment.