new Messenger(optionsopt)
Creates a Messenger instance.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
<optional> |
Configuration options.
|
Members
destroyed :Boolean
This read-only property shows whether this Messenger is destroyed.
Properties:
| Name | Type | Description |
|---|---|---|
destroyed |
- Default Value:
- false
- Source:
Type:
-
Boolean
Methods
(static) initialize(object)
Call this method in an Object's instantiation if Messenger.mixin has been called on its Class.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
object |
Object
|
The object for which Messenger should be instantiated. |
(static) mixin(ClassObject)
Adds Messenger functionality to a Class.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
ClassObject |
Class
|
function
|
The class to add Messenger behavior to. |
getMessageIds() → {Array}
This method returns all the messages that this entity is concerned about.
- Source:
Returns:
- Type:
-
Array
An array of strings listing all the messages for which this Messenger has handlers.
toString()
Returns a string describing the Messenger as "[Messenger object]".
- Source:
Returns:
String