setupHandler (rootElement, event, eventName) private
Registers an event listener on the rootElement. If the given event is triggered, the provided event handler will be triggered on the target view.
If the target view does not implement the event handler, or if the handler returns false
, the parent view will be called. The event will continue to bubble to each successive parent view until it reaches the top.
Parameters:
-
rootElement
Element
-
event
String
- the browser-originated event to listen to
-
eventName
String
- the name of the method to call on the view
Please login to continue.