uxebu / bonsai

BonsaiJS is a graphics library and renderer
http://bonsaijs.org
Other
1.96k stars 189 forks source link

Runner: stage.sendMessage fails silently without a data object #177

Open iamdustan opened 11 years ago

iamdustan commented 11 years ago

stage.sendMessage('myMessage'); message is not sent

stage.sendMessage('myMessage', {}); message is sent stage.sendMessage('myMessage', undefined); message is sent stage.sendMessage('myMessage', null); message is sent

I would expect the first example to still send a message. Use case is to achieve the same behavior as myEventEmitter.trigger('myMessage');

wallynm commented 11 years ago

When i was developing i've had same problem