tanerdiler/jeventbus-javascript-event-driven-architecture

different method name could be signed as listener method

tanerdiler opened this issue · 0 comments

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');