From f0a99c6b0ab70cfc0d1baaa5e66541d4800751ee Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Sat, 12 Aug 2017 14:17:04 +0200 Subject: [PATCH] (bluefox) allow generation of null values --- javascript.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/javascript.js b/javascript.js index 3524c8aa..c112d0df 100644 --- a/javascript.js +++ b/javascript.js @@ -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;