falsy params.data, fixes #392

This commit is contained in:
Galen Wolfe-Pauly 2015-08-31 16:10:44 -07:00
parent e56d352ce1
commit e46218ffca

View File

@ -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]