core: replace remaining getglobals in favor of _G

This commit is contained in:
shagu
2019-04-06 14:30:31 +02:00
parent 85975eaee1
commit d7c64d7d0a
8 changed files with 23 additions and 23 deletions
+3 -3
View File
@@ -46,12 +46,12 @@ pfUI:RegisterModule("skin", function ()
if C.appearance.cd.blizzard == "1" then
hooksecurefunc("PaperDollItemSlotButton_Update", function()
local cooldown = getglobal(this:GetName().."Cooldown")
local cooldown = _G[this:GetName().."Cooldown"]
if cooldown then cooldown.pfCooldownType = "ALL" end
end)
hooksecurefunc("SpellButton_UpdateButton", function()
local cooldown = getglobal(this:GetName().."Cooldown")
local cooldown = _G[this:GetName().."Cooldown"]
if cooldown then cooldown.pfCooldownType = "ALL" end
end)
end
@@ -76,7 +76,7 @@ pfUI:RegisterModule("skin", function ()
GameMenuButtonOptions:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset - 22)
for _, box in pairs(boxes) do
local b = getglobal(box)
local b = _G[box]
CreateBackdrop(b, nil, true, .8)
end