Hub for the publish-subscribe mechanism among Voxelent entities
Handles asynchronous communication among classes in Voxelent using a publisher-subscriber mechanism
Invoked by any class when it needs to emit an event that should be propagated to otherobjects in the library
The notifier will first verify if the object emitting the event has been authorized to do so.This is, the object should have registered using publish
.After that, the notifier will retrieve a list of the objects that have registered as listeners of the particular event and fires the event to them using JQuery.
Parameters:
Type | Name | Description |
---|---|---|
Object |
event
|
|
Object |
src
|
|
Parameters:
Type | Name | Description |
---|---|---|
Object |
event
|
the event in question |
Used by any class to declare the events that the class will generate
Parameters:
Type | Name | Description |
---|---|---|
Object |
list
|
|
Object |
sender
|
|