Manages the events communication
Classes
Methods
(inner) decreaseNesting(eventNameopt)
Decrease number of open Deferred
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
eventName |
string |
<optional> |
(inner) increaseNesting(eventNameopt)
Increase number of open Deferred
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
eventName |
string |
<optional> |
(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 |
(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 |
(inner) register(callBack, context)
SYNC
Removes a listener to the event
Parameters:
Name | Type | Description |
---|---|---|
callBack |
type | |
context |
type |
(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 |
(inner) subscribe(typeEvent, callback, context)
SYNC
Detaches a listener "callback" from an event
Parameters:
Name | Type | Description |
---|---|---|
typeEvent |
object | |
callback |
function | |
context |
object |
(inner) trigger(sender, argsopt)
ASYNC
Invokes all delegates linked to the event
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
sender |
object | ||
args |
Array.<object> |
<optional> |
(inner) trigger(type, sender)
SYNC
Invokes all listener's delegates, this is ASYNC
Parameters:
Name | Type | Description |
---|---|---|
type |
string | |
sender |
object |