PulseComponent
Static Member Summary
Static Private Members | ||
private static |
Array of stored IDs so that multiple of the same ID cannot be claimed |
|
private static |
Array that tracks events for instances |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
version: * The version of the module. |
Private Members | ||
private |
Weakmap to track data belonging to instances used in this module. |
|
private |
The logger module this module uses to log errors / logs |
Method Summary
Public Methods | ||
public |
Removes an event listener function from pInstance |
|
public |
Adds an event listener function to pInstance to call whenever pEventName is called |
Private Methods | ||
private |
generateID(pID: number): string Generates a random ID based on the specified length and ensures its uniqueness within the stored IDs. |
|
private |
listenForEvent(pInstance: Object, pEventName: string) Listens for an event on an instance. |
Static Private Members
Public Constructors
public constructor() source
Public Members
Private Members
Public Methods
public off(pInstance: Object, pEventName: string, pFunction: Function) source
Removes an event listener function from pInstance
public on(pInstance: Object, pEventName: string, pFunction: Function) source
Adds an event listener function to pInstance to call whenever pEventName is called
Private Methods
private generateID(pID: number): string source
Generates a random ID based on the specified length and ensures its uniqueness within the stored IDs.
Params:
Name | Type | Attribute | Description |
pID | number |
|
The length of the generated ID. |