CreateAndInitFromMixin()
Jump to navigation
Jump to search
- This function is implemented in
FrameXML/Mixin.lua
.
- This function is implemented in
Clones an existing table and then calls Init(...) on the clone.
object = CreateAndInitFromMixin(mixin, ...)
Arguments
- mixin
- table - Passed to CreateFromMixins(mixin)
- ...
- varies - Passed to object:Init(...)
Returns
- object
- table - The new clone, after calling its Init(...) function
Details
- Unlike CreateFromMixins(...), this function only allows copying (or mixing in) children from a single pattern table.
Patch history
- Patch 8.2.5 (2019-09-24): Added.[1]
References
- ^ 2019-09-24, Mixin.lua, version 8.2.5.31960, near line 31, archived at Townlong-Yak