docs and notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-06-08 20:18:35 +03:00
parent cae9613c70
commit 939ac1b13a
2 changed files with 5 additions and 0 deletions

View File

@ -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(..)`

View File

@ -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