Module: EventManger

Manages the events communication
Source:

Classes

Delegate
Event
EventManager
Stabilizer

Methods

(inner) decreaseNesting(eventNameopt)

Decrease number of open Deferred
Parameters:
Name Type Attributes Description
eventName string <optional>
Source:

(inner) increaseNesting(eventNameopt)

Increase number of open Deferred
Parameters:
Name Type Attributes Description
eventName string <optional>
Source:

(inner) invoke(sender, argsopt)

Calls the function "callBack" with "this" the context and as parameters the sender plus other args
Parameters:
Name Type Attributes Description
sender object specifies the origin of the event
args * <optional>
optional parameters
Source:

(inner) register(callBack, context)

SYNC Adds a listener to the event. Id adds ea new Delegate object to the subscribers collection
Parameters:
Name Type Description
callBack function
context object
Source:

(inner) register(callBack, context)

SYNC Removes a listener to the event
Parameters:
Name Type Description
callBack type
context type
Source:

(inner) subscribe(eventType, callback, context)

SYNC Attaches a listener "callback" to an event
Parameters:
Name Type Description
eventType String
callback function
context Object this of the subscriber
Source:

(inner) subscribe(typeEvent, callback, context)

SYNC Detaches a listener "callback" from an event
Parameters:
Name Type Description
typeEvent object
callback function
context object
Source:

(inner) trigger(sender, argsopt)

ASYNC Invokes all delegates linked to the event
Parameters:
Name Type Attributes Description
sender object
args Array.<object> <optional>
Source:

(inner) trigger(type, sender)

SYNC Invokes all listener's delegates, this is ASYNC
Parameters:
Name Type Description
type string
sender object
Source: