working on docs..

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-08-23 21:49:36 +03:00
parent 9c74ae7a32
commit ed08ed83cd

View File

@ -117,14 +117,16 @@ Root Action o---|---x
- a method, created by `Action(..)`,
- calls all the shadowed/overloaded actions in the inheritance
chain in sequence implicitly,
NOTE: there is no way to prevent an action in the chain from
**Notes:**
- there is no way to prevent an action in the chain from
running, this is by design, i.e. no way to fully shadow.
- actions that do not shadow anything are called root actions.
- returns the action set by default (for call chaining),
- the base/root action can return any value.
NOTE: if undefined is returned, it will be replaced by the
**Notes:**
- if undefined is returned, it will be replaced by the
action context/action set.
NOTE: there is no distinction between root and other actions
- there is no distinction between root and other actions
other than that root action's return values are not
ignored.
- can consist of two parts: the first is called before the
@ -187,7 +189,7 @@ Root Action o---|---x
This replaces / complements the standard JavaScript overloading
mechanisms (`Action`, `Actions`)
```
```javascript
// Actions...
var X = Actions({
m: [function(){ console.log('m') }]