mirror of
https://github.com/flynx/actions.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
fcc2ac64bd
commit
7f52af4b94
@ -57,6 +57,10 @@ not reusable, i.e.:
|
||||
either copy/rewrite it or complicate the code.
|
||||
- we can't use the extending method stand-alone, for example for testing
|
||||
|
||||
It is possible to go around these issues but not without introducing
|
||||
complicated and/or redundant code, _Actions_ implements one approach to
|
||||
abstract this...
|
||||
|
||||
|
||||
#### The solution:
|
||||
|
||||
@ -94,7 +98,6 @@ n
|
||||
.times(2)
|
||||
```
|
||||
|
||||
Now:
|
||||
- `this` is returned automatically enabling us to chain calls to `.times(..)`
|
||||
- the _super_ method is resolved and called automatically
|
||||
- both `N` and `ExtendedN` are independent of each other and reusable
|
||||
@ -144,8 +147,6 @@ Now:
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
### The main entities:
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user