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