From e46218ffcaeb8af58b7d1eba5db2ee13e678874f Mon Sep 17 00:00:00 2001 From: Galen Wolfe-Pauly Date: Mon, 31 Aug 2015 16:10:44 -0700 Subject: [PATCH] falsy params.data, fixes #392 --- lib/urb.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/urb.js b/lib/urb.js index 10a5aa1f4..9dc381226 100644 --- a/lib/urb.js +++ b/lib/urb.js @@ -189,9 +189,14 @@ window.urb.send = function(params,cb) { params.ship = params.ship || this.ship params.appl = params.appl || this.appl - params.mark = params.mark || "json" params.xyro = params.data || {} + params.mark = params.mark || "json" params.wire = params.wire || "/" + + if(typeof(params.data) === 'undefined') + params.xyro = null + else + params.xyro = params.data url = ["to",params.appl,params.mark]