mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40:08 +00:00
docs and notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
cae9613c70
commit
939ac1b13a
@ -732,6 +732,9 @@ mixinFlat(<base>, <object>, ..)
|
|||||||
This is like `Object.assign(..)` but copies property descriptors rather
|
This is like `Object.assign(..)` but copies property descriptors rather
|
||||||
than property values.
|
than property values.
|
||||||
|
|
||||||
|
Also like `Object.assign(..)` this _will_ overwrite attribute values in
|
||||||
|
`<base>`.
|
||||||
|
|
||||||
|
|
||||||
### `RawInstance(..)`
|
### `RawInstance(..)`
|
||||||
|
|
||||||
|
|||||||
2
test.js
2
test.js
@ -633,6 +633,8 @@ module.modifiers = {
|
|||||||
return res },
|
return res },
|
||||||
|
|
||||||
// mixins...
|
// mixins...
|
||||||
|
// NOTE: running this in flat mode will have side-effects -- overwriting
|
||||||
|
// existing attributes and methods...
|
||||||
// XXX might be a good idea to get the method name from the context... how?
|
// XXX might be a good idea to get the method name from the context... how?
|
||||||
mixin_instance: function(assert, setup, flat, filter, get){
|
mixin_instance: function(assert, setup, flat, filter, get){
|
||||||
filter = filter || instances
|
filter = filter || instances
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user