From 3899d9b018237b35e1ce4c13a1e7e1947260ed1f Mon Sep 17 00:00:00 2001 From: logsol Date: Sun, 15 Jul 2012 21:59:36 +0200 Subject: [PATCH] setting NULL for command option default value. fixes #8 --- lib/Protocol/Helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Protocol/Helper.js b/lib/Protocol/Helper.js index a383a0e..f25aa91 100644 --- a/lib/Protocol/Helper.js +++ b/lib/Protocol/Helper.js @@ -8,7 +8,7 @@ define(["Protocol/Parser"], function(Parser) { Helper.assemble = function(command, options){ var commands = {}; - commands[command] = options; + commands[command] = options || null; return commands; }