BusEvent
Direct Subclass:
Indirect Subclass:
An event that can be dispatched from the event bus.
Constructor Summary
| Public Constructor | ||
| public | 
       constructor(_target: T, _options: BusEventOptions, _parent: BusEvent<any> | null) Creates an instance of BusEvent.  | 
    |
Member Summary
| Public Members | ||
| public get | 
      
       A Promise that resolves when the event is 'done'.  | 
    |
| public get | 
      
       Whether the propagation of this event is stopped.  | 
    |
| public get | 
      
       The options provided to this event.  | 
    |
| public get | 
       origin: * The origin event.  | 
    |
| public get | 
       target: T The target of the event.  | 
    |
Method Summary
| Public Methods | ||
| public | 
       delegate(Ctor: Type<U>, target: *, options: BusEventOptions): U Creates a new event with a new target and setting this event as the _parent of the new event.  | 
    |
| public | 
       dispatch(subscriber: Observer<this>) Implements how this event is dispatched on the given event bus.  | 
    |
| public | 
      
       Stops the propagation of the event.  | 
    |
| public | 
      
       Adds a function that will execute and hold up the finishing of this event until the given promise resolves.  | 
    |
Public Constructors
public constructor(_target: T, _options: BusEventOptions, _parent: BusEvent<any> | null) source
Creates an instance of BusEvent.
Params:
| Name | Type | Attribute | Description | 
| _target | T | ||
| _options | BusEventOptions | 
  | 
      |
| _parent | BusEvent<any> | null | 
  | 
      
Public Members
Public Methods
public delegate(Ctor: Type<U>, target: *, options: BusEventOptions): U source
Creates a new event with a new target and setting this event as the _parent of the new event. This will merge options with the previou event.
Params:
| Name | Type | Attribute | Description | 
| Ctor | Type<U> | ||
| target | * | 
  | 
      |
| options | BusEventOptions | 
  | 
      
Return:
| U | 
public dispatch(subscriber: Observer<this>) source
Implements how this event is dispatched on the given event bus.
Params:
| Name | Type | Attribute | Description | 
| subscriber | Observer<this> |