Properties
Private fullTimeDelegates
fullTimeDelegates: any
Private oneTimeDelegates
oneTimeDelegates: any
Methods
addEventListener
addEventListener( namespace: string , action: string , delegateFunction: any , oneTime?: boolean ) : void
Parameters
namespace: string
action: string
delegateFunction: any
Default value oneTime: boolean = false
Returns void
event
event( namespace: string , action: string , ... args: any ) : void
Parameters
namespace: string
action: string
Rest ... args: any
Returns void
removeEventListener
removeEventListener( namespace: string , action: string , delegateFunction: any ) : void
Parameters
namespace: string
action: string
delegateFunction: any
Returns void
removeListener
removeListener( delegateFunction: any ) : void
Static Private createEvent
createEvent( namespace: string , action: string , delegateHolder: object ) : void
Parameters
namespace: string
action: string
delegateHolder: object
Returns void
Static Private remove
remove( array: [] , delegateFunction: any ) : void
Parameters
array: []
delegateFunction: any
Returns void
Static Private removeFrom
removeFrom( delegateHolder: any , namespace: string , action: string , delegateFunction: any ) : void
Parameters
delegateHolder: any
namespace: string
action: string
delegateFunction: any
Returns void
Static Private removeFromAll
removeFromAll( delegateHolder: any , delegateFunction: any ) : void
Parameters
delegateHolder: any
delegateFunction: any
Returns void
Static Private runEvent
runEvent( delegateHolder: any , namespace: string , action: string , ... args: any ) : void
Parameters
delegateHolder: any
namespace: string
action: string
Rest ... args: any
Returns void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Event Manager Namespace and action based multi level events management for node and web applications.
This module can be used to pass variables from system to system in a stateless environment. A part can listen to and event, and another can raise the same event. Methods can be set as chained promise calls or async.