Mixin: Geometry.Eventful
This provides methods used for event handling. It's not meant to be used directly.
- Source:
- example/src/mixin.js, line 7
Methods
(static) on(eventName, handler)
Register a handler function to be called whenever this event is fired.
- Source:
- example/src/mixin.js, line 13
Parameters:
Name | Type | Description |
---|---|---|
eventName
|
string
|
Name of the event. |
handler
|
function
|
The handler to call. |
(static) fire(eventName, eventData)
Fire an event, causing all handlers for that event name to run.
- Source:
- example/src/mixin.js, line 22
Parameters:
Name | Type | Description |
---|---|---|
eventName
|
string
|
Name of the event. |
eventData
|
Object
|
The data provided to each handler. |