Skip to content

Commit

Permalink
(bluefox) allow generation of null values
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Aug 12, 2017
1 parent a538705 commit f0a99c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions javascript.js
Expand Up @@ -1657,6 +1657,10 @@
isAck = undefined;
}

if (state === null) {
state = {val: null};
}

if (isAck === true || isAck === false || isAck === 'true' || isAck === 'false') {
if (typeof state === 'object') {
state.ack = isAck;
Expand Down

0 comments on commit f0a99c6

Please sign in to comment.