api: rename global variables

This commit is contained in:
shagu
2017-02-26 20:41:56 +01:00
parent a25b440507
commit e20e4ef385
+7 -2
View File
@@ -74,9 +74,14 @@ pfUI:SetScript("OnEvent", function()
-- unify module environment
local env_pfui = {}
setmetatable(env_pfui, {__index = getfenv(0)})
-- environment
env_pfui.A = pfUI.api
env_pfui.C = pfUI_config
-- env_pfui.L = pfUI_locale
-- classic only
env_pfui._G = getfenv(0)
env_pfui._C = pfUI_config
env_pfui._A = pfUI.api
-- fill the cache
pfUI.cache["locale"] = GetLocale()