View Single Post
09-04-20, 10:21 AM   #13
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
On closer look, you're creating all your functions a globals. While that's entirely up to you, the global space is shared by all other 3rd party addons and the the Blizzard UI. Blizzard tends use the more common names so it's up to addon authors to make whatever they place in the global table unique.

Code:
function eventHandler(self, event, ...)
   ...
end
Last addon loaded to use this as the name of their eventHandler function possibly gets to run all other addons events that use the same function name.

Use something like the addon name or abbreviation or ... to make globals unique:
Code:
function AMine_eventHandler(self, event, ...)
   ...
end
or use locals:
Code:
local function eventHandler(self, event, ...)
   ...
end
are two options.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 09-04-20 at 10:40 AM.
  Reply With Quote