EventDispatcher#setupHandler()

setupHandler (rootElement, event, eventName) private

Defined in packages/ember-views/lib/system/event_dispatcher.js:184

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
doc_EmberJs
2016-11-30 16:52:05
Comments
Leave a Comment

Please login to continue.