Originally Posted by Grimsin
Should this be at the top of each of my files?
local addonName, addon = ...
_G[addonName] = addon
or just my first file?
|
I usually have a core file in a UI addon that is loaded first out of all the others that handles all the basic needs, typicly global registration of the addon table, API for registering modules, event callback system, and/or any functions/structures I want globally available to the entire addon.
It doesn't hurt to put that line in all of your files, but it's completely redundant.