mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 10:20:09 +00:00
working on docs..
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
7522576753
commit
c667a92236
@ -117,7 +117,7 @@ n
|
|||||||
The return value will get passed through all the actions in a chain
|
The return value will get passed through all the actions in a chain
|
||||||
before returning to the action caller.
|
before returning to the action caller.
|
||||||
- **Return `this` by default**
|
- **Return `this` by default**
|
||||||
- **Organise reuse actions**
|
- **Organise and reuse actions**
|
||||||
Actions organized into action sets can be reused (_mixed-in_) in multiple
|
Actions organized into action sets can be reused (_mixed-in_) in multiple
|
||||||
inheritance chains without any extra work.
|
inheritance chains without any extra work.
|
||||||
- **Unified way to document actions**
|
- **Unified way to document actions**
|
||||||
@ -373,7 +373,7 @@ _action_ is build-in.
|
|||||||
|
|
||||||
A trivial example:
|
A trivial example:
|
||||||
|
|
||||||
```
|
```javascript
|
||||||
actionSet.someAction.chainApply(actionsSet,
|
actionSet.someAction.chainApply(actionsSet,
|
||||||
function(){
|
function(){
|
||||||
// this gets run between someAction's pre and post
|
// this gets run between someAction's pre and post
|
||||||
@ -387,7 +387,7 @@ _action_ is build-in.
|
|||||||
implementations (inner) within a single action set can be used as
|
implementations (inner) within a single action set can be used as
|
||||||
entry points.
|
entry points.
|
||||||
|
|
||||||
```
|
```javascript
|
||||||
// Protocol root action (outer) definition...
|
// Protocol root action (outer) definition...
|
||||||
protocolAction: [function(){}],
|
protocolAction: [function(){}],
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user