new module:br/util/ListenerFactory(interfaceFunc, eventName)
Construct a new
ListenerFactorythat can create listeners for the given event, on the given interface.
||function||The listener interface that objects created with this factory will implement.|
||String||The particular event on the listener interface that will be proxied through.|
Returns a listener that will forward received events through to the given method on the given object.
Name Type Description
Object The object that will be invoked when events are received.
String The name of the method to invoke on the target object.