Originally Posted by Phanx
It's also worth mentioning that OnLoad scripts are unnecessary in Lua, and in fact aren't even supported in Lua; you just declare the frame and then do stuff with it immediately.
|
The reason for this is because the OnLoad handler fires before
CreateFrame() returns. If you create a template with an OnLoad handler, then inherit it with a
CreateFrame() call, it would run.