Handles underlying communication between the embedding window and the editor frame
- Source:
Classes
Methods
(inner) addCallback(t, data) → {void}
Having this separate from messageListener allows us to avoid using JSON parsing (and its limitations) in the case of same domain control.
Parameters:
| Name | Type | Description |
|---|---|---|
t |
module:EmbeddedSVGEdit.EmbeddedSVGEdit | The |
data |
JSON |
- Source:
Returns:
- Type
- void
(inner) getCallbackSetter(funcName) → {module:EmbeddedSVGEdit.CallbackSetGetter}
Parameters:
| Name | Type | Description |
|---|---|---|
funcName |
string |
- Source:
Returns:
(inner) getMessageListener(t) → {module:EmbeddedSVGEdit.MessageListener}
Parameters:
| Name | Type | Description |
|---|---|---|
t |
module:EmbeddedSVGEdit.EmbeddedSVGEdit | The |
- Source:
Returns:
Event listener
(inner) messageListener(e) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
e |
Event |
- Source:
Returns:
- Type
- void
Type Definitions
CallbackSetGetter(…args) → {module:EmbeddedSVGEdit.CallbackSetter}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
args |
any |
<repeatable> |
Signature dependent on the function |
- Source:
Returns:
CallbackSetter(newCallback) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
newCallback |
GenericCallback | Callback to be stored (signature dependent on function) |
- Source:
Returns:
- Type
- void
MessageListener(e) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
e |
MessageEvent |
- Source:
Returns:
- Type
- void