mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 10:20:09 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
cb5f51fa7f
commit
b102ea3c13
@ -64,6 +64,7 @@ abstract this...
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var N = Actions({
|
var N = Actions({
|
||||||
|
// Notice the brackets around the function...
|
||||||
times: [function(n){
|
times: [function(n){
|
||||||
this.value *= n
|
this.value *= n
|
||||||
}]
|
}]
|
||||||
@ -146,6 +147,10 @@ n
|
|||||||
- By design this tool-set promotes a _cooperative_ model and makes it
|
- By design this tool-set promotes a _cooperative_ model and makes it
|
||||||
hard to change/modify existing signatures / _contracts_ in _extending_
|
hard to change/modify existing signatures / _contracts_ in _extending_
|
||||||
code, hence the restrictions.
|
code, hence the restrictions.
|
||||||
|
- `mix(..)`, the mixin method family usually copy references to actions
|
||||||
|
to the target object, this is done to go around the lack of multiple
|
||||||
|
inheritance support in JavaScript and to enable clean action set reuse.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### The main entities:
|
### The main entities:
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-actions",
|
"name": "ig-actions",
|
||||||
"version": "1.0.5",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "actions.js",
|
"main": "actions.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user