accept calls without value

This commit is contained in:
copy 2014-12-26 20:36:58 +01:00
parent 14e62b1eac
commit 0a086eb4fd

View file

@ -24,9 +24,13 @@ Bus.Connector.prototype.register = function(name, fn, thisValue)
});
};
/**
* @param {string} name
* @param {Object=} value
*/
Bus.Connector.prototype.send = function(name, value)
{
dbg_assert(arguments.length === 2);
dbg_assert(arguments.length === 1 || arguments.length === 2);
if(!this.pair)
{