View Single Post
01-17-15, 02:42 AM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Sweetsour View Post
Lua Code:
  1. local main = {};
  2. main = addon.MainFrame;
Also this is kind of silly -- if you want "main" to be a reference to "addon.MainFrame" just set it as one directly, without creating and immediately discarding a random table in between:

Lua Code:
  1. local main = addon.MainFrame;
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote