src code

class Event.Handler

Description

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.

Constructor

Instance properties