Add transfer_list argument for interfacing with web workers

This commit is contained in:
copy 2015-04-12 16:47:31 +02:00
parent 5ec103706f
commit 1a233caf82

View file

@ -55,10 +55,11 @@ Bus.Connector.prototype.unregister = function(name, fn)
*
* @param {string} name
* @param {*=} value
* @param {*=} unused_transfer
*/
Bus.Connector.prototype.send = function(name, value)
Bus.Connector.prototype.send = function(name, value, unused_transfer)
{
dbg_assert(arguments.length === 1 || arguments.length === 2);
dbg_assert(arguments.length === 1 || arguments.length === 2 || arguments.length === 3);
if(!this.pair)
{