different method name could be signed as listener method
tanerdiler opened this issue · 0 comments
tanerdiler commented
In order to attach a listener to event, you have to define listener method name exactly same as event name. For onClick event, listener must have onClick method.
var eventbus = require('the.eventbus');
eventbus.listener(mylistener).withMethod('[METHOD NAME]').listen('onClick');