class Event.Handler

View source on GitHub →


Creates an observer on an element that listens for a particular event on that element's descendants, optionally filtering by a CSS selector.

This class simplifies the common "event delegation" pattern, in which one avoids adding an observer to a number of individual elements and instead listens on a common ancestor element.

For more information on usage, see Event.on.


Instance properties