CreateAndInitFromMixin()

From Warcraft Wiki
Jump to navigation Jump to search
This function is implemented in FrameXML/Mixin.lua.

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

References

 
  1. ^ 2019-09-24, Mixin.lua, version 8.2.5.31960, near line 31, archived at Townlong-Yak