- Source:
Classes
Namespaces
Methods
(static) off(object, eventType, handler, optionsopt)
Remove callbacks. If `handler` is null, removes all handlers for the eventType. If `eventType` is null, removes all bound handlers for all events.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
object |
object | ||
eventType |
string | Array.<string> | null | ||
handler |
function | ||
options |
BeautifulProperties.Events~BindingOptions |
<optional> |
- Source:
(static) on(object, eventType, handler, optionsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
object |
object | ||
eventType |
string | Array.<string> | ||
handler |
function | ||
options |
BeautifulProperties.Events~BindingOptions |
<optional> |
- Source:
(static) provideMethods(object)
Parameters:
Name | Type | Description |
---|---|---|
object |
object |
- Source:
(static) trigger(object, eventType)
Trigger one or many events, firing all bound callbacks. Callbacks are passed the same arguments as `trigger` is, apart from the event name.
Parameters:
Name | Type | Description |
---|---|---|
object |
object | |
eventType |
string | BeautifulProperties.Events.Event~options |
- Source:
Type Definitions
BindingOptions
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
thisObject |
* |
<optional> |
is the ThisBinding of the handler execution context. |
- Source: