Variables and Addon Names
I have been using a mod as a base and changing what it does. I would like to learn more, but this confuses me.
local Demonomicon = Servitas:StyleButton(CreateFrame("Button", "Demonomicon", UIParent, "SecureHandlerClickTemplate"))
Servitas.Demonomicon = Demonomicon
SecureHandler_OnLoad(Demonomicon)
There is an
addon Folder called Demonomicon which contains a file called Demonomicon and a file called Servitas that contains a local variable called Demonomicon.
Is this standard coding or does the original author ( 2+ years ago) fail to follow some conventions?
thanks in advance
Rhamses
|