new Invocation(destination, slot, value)
Defines an invocation
Parameters:
| Name | Type | Description |
|---|---|---|
destination |
object | component on which to perform invocation |
slot |
string | name of the slot |
value |
mixed | value passed to the invoked slot |
Methods
- Type
- object
- Type
- String
- Type
- mixed
<static> cast(obj, context)
Helper function that casts an invocation from a description
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
object | a raw description of the invocation |
context |
object | the context in which this invocation takes place. |
Returns:
an invocation
getDestination() → {object}
Returns the destination component of this invocation
Returns:
destination component of this invocation
getSlot() → {String}
Returns the slot name of this invocation
Returns:
slot name of this invocation
getValue() → {mixed}
Returns the value used for this invocation
Returns:
value used for this invocation
invoke()
Performs the invocation
.js