PropEvents
The Prop Event Class
Constructor Summary
| Public Constructor | ||
| public |
constructor(value: any, parent: OBJECT) |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
isObservable: * |
|
| public |
parent: * |
|
| Private Members | ||
| private |
_event: {} |
|
Method Summary
| Public Methods | ||
| public |
Unbinds an event listener |
|
| public |
Bind an event listener |
|
| Private Methods | ||
| private |
Calls event bubbling on the parent Observable |
|
| private |
async _processEvent(eventName: Event, target: Prop, additional: Object) Calls the listeners for the Event triggered |
|
Public Constructors
Public Members
public eventCallbacks: * source
public isObservable: * source
public parent: * source
Private Members
private _event: {} source
Public Methods
public off(eventName: Event, callback: Function) source
Unbinds an event listener
Params:
| Name | Type | Attribute | Description |
| eventName | Event | The event being listening to, enumerated in the events file |
|
| callback | Function | The method called when the event is fired |
public on(eventName: Event, callback: Function) source
Bind an event listener
Params:
| Name | Type | Attribute | Description |
| eventName | Event | The event being listening to, enumerated in the events file |
|
| callback | Function | The method called when the event is fired |
Private Methods
private _bubble(eventName: Event, target: Prop) source
Calls event bubbling on the parent Observable
Params:
| Name | Type | Attribute | Description |
| eventName | Event | The event being listening to, enumerated in the events file |
|
| target | Prop | The Prop that was the source of the Event |
private async _processEvent(eventName: Event, target: Prop, additional: Object) source
Calls the listeners for the Event triggered
Params:
| Name | Type | Attribute | Description |
| eventName | Event | The event being listening to, enumerated in the events file |
|
| target | Prop | The Prop that was the source of the Event |
|
| additional | Object |
|
|
| additional.bubble | Boolean |
|
A boolean that indicates that the event firing is bubbled from a child Prop |
