Class jabberwerx.EventDispatcher (MINIMAL)
Manages a collection of events for a given source.
Each event for this dispatcher is represented by a jabberwerx.EventNotifier, as a property of this dispatcher. To access a specific notifier, use the following notation:
dispatcher['on:<name>']
Where <name> is the name of the event (lower case).
Constructor Attributes | Constructor Name and Description |
---|---|
Constructs new EventDispatcher with the given source.
|
Field Attributes | Field Name and Description |
---|---|
The source of events
|
Method Attributes | Method Name and Description |
---|---|
Marks this type for inline serialization.
|
|
Called just after to unserializing.
|
Class Detail
jabberwerx.EventDispatcher(src)
Constructs new EventDispatcher with the given source.
- Parameters:
- {Object} src
- The source for events
Field Detail
source
The source of events
Method Detail
{Boolean}
shouldBeSavedWithGraph()
Marks this type for inline serialization.
- Returns:
- {Boolean} always true
wasUnserialized()
Called just after to unserializing. This method removes the global
dispatcher jabberwerx.globalEvents from being a property.