mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40:08 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b655b33d71
commit
f3fd1845ff
@ -264,6 +264,15 @@ var m = object.mixin(Base(), utilityMixin)
|
||||
`.mixin(..)` will copy the contents of `utilityMixin` into the prototype
|
||||
chain between `m` and `m.__proto__`.
|
||||
|
||||
We can also remove the mixin...
|
||||
```javascript
|
||||
m = o.mixout(m, utilityMixin)
|
||||
```
|
||||
|
||||
The mixed-in data is removed iff an object is found in the chain with the
|
||||
same number of attributes as `utilityMixin` and with each attribute matching
|
||||
identity with the corresponding attribute in the mixin.
|
||||
|
||||
|
||||
Constructor-based mixin...
|
||||
```javascript
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user