mirror of
https://github.com/flynx/features.js.git
synced 2025-10-28 18:00:11 +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
|
||||
before returning to the action caller.
|
||||
- **Return `this` by default**
|
||||
- **Organise reuse actions**
|
||||
- **Organise and reuse actions**
|
||||
Actions organized into action sets can be reused (_mixed-in_) in multiple
|
||||
inheritance chains without any extra work.
|
||||
- **Unified way to document actions**
|
||||
@ -373,7 +373,7 @@ _action_ is build-in.
|
||||
|
||||
A trivial example:
|
||||
|
||||
```
|
||||
```javascript
|
||||
actionSet.someAction.chainApply(actionsSet,
|
||||
function(){
|
||||
// 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
|
||||
entry points.
|
||||
|
||||
```
|
||||
```javascript
|
||||
// Protocol root action (outer) definition...
|
||||
protocolAction: [function(){}],
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user