CreateFromMixins()
Jump to navigation
Jump to search
- This function is implemented in
FrameXML/Mixin.lua
.
- This function is implemented in
Copies (or mixes in) children from one or more tables into another.
object = Mixin(object, ...) object = CreateFromMixins(...)
Arguments
- object
- table - The table that children are pasted into
- ...
- table - One or more pattern tables that are copied from
Returns
- object
- table - The table that children were pasted into
Details
- CreateFromMixins creates a new table, while Mixin pastes children to an existing one
- When there are multiple pattern tables, children of later ones will overwrite copies of earlier ones (ie, order matters)
Patch changes
- Patch 8.2.0 (2019-06-25): Consolidated all versions of these functions in
FrameXML/Mixin.lua
.[1] - Patch 7.3.2 (2017-10-24): Duplicated without new behaviour in
FrameXML/BulletPoint.lua
.[2] - Patch 7.2.0 (2017-03-28): Duplicated without new behaviour in
FrameXML/Pools.lua
.[3] - Patch 7.0.3 (2016-07-19): Added.[4]
See also
CreateAndInitFromMixin(mixin, ...) - Also calls object:Init(...), but accepts only a single table to copy from
References
- ^ 2019-06-25, Mixin.lua, version 8.2.5.30920, near line 25, archived at Townlong-Yak
- ^ 2017-10-24, BulletPoint.lua, version 7.3.2.25383, near line 21, archived at Townlong-Yak
- ^ 2017-03-28, Pools.lua, version 7.2.0.23835, near line 26, archived at Townlong-Yak
- ^ 2016-07-19, Util.lua, version 7.0.3.22267, near line 174, archived at Townlong-Yak