(abstract) new Event(type)
Abstract base class for events.
Parameters:
Name | Type | Description |
---|---|---|
type |
String | The event type (e.g. keydown , databound ). |
- Source:
Extends
- antie.Class
Methods
(static) addEventListener(ev, func)
Add an event listener function to the event stack. Used for 'meta-events'.
Parameters:
Name | Type | Description |
---|---|---|
ev |
String | The event type to listen for (e.g. emptyStack ) |
func |
function | The handler to be called when the event is fired. |
- Source:
(static) fireEvent(ev)
Fires an event on the event stack.
Note: this does not bubble or propagate the event, the concept is meaningless in the context
of the event stack.
Parameters:
Name | Type | Description |
---|---|---|
ev |
String | The event to fire (e.g. emptyStack ). |
- Source:
- See:
(static) removeEventListener(ev, func)
Removes an event listener function to the event stack. Used for 'meta-events'.
Parameters:
Name | Type | Description |
---|---|---|
ev |
String | The event type that the listener is to be removed from (e.g. emptyStack ) |
func |
function | The handler to be removed. |
- Source:
isDefaultPrevented()
Check to see if the default handler has been prevented.
- Source:
Returns:
Boolean true if the default handler has been prevented.
isPropagationStopped()
Check to see if the propagation of this event has been stopped.
- Source:
Returns:
Boolean true if the event has been stopped, otherwise Boolean false.
preventDefault()
Prevent any default handler being called for this event.
- Source:
stopPropagation()
Stop propagation of the event through the widget tree.
- Source: