The `events` module contains all functionality for DOM event binding
and triggering events. This will also contain the logic for custom
Dollarsign-only events and event delegation.
Methods
(static) fire(event) → {Dollarsign}
Trigger an event on all elements in this object.
Parameters:
Name | Type | Description |
---|---|---|
event |
string
|
Name of the event to trigger. |
(static) off(event) → {Dollarsign}
Unbind an event from the elements in this selection.
Parameters:
Name | Type | Description |
---|---|---|
event |
string
|
Name of the event to be unbound. |
(static) on(event, listener) → {Dollarsign}
Bind an event to the elements in this selection.
Parameters:
Name | Type | Description |
---|---|---|
event |
string
|
Name of the event to be bound. |
listener |
eventListener
|
Function to be executed when event fires. |