api: replace getglobal

This commit is contained in:
shagu
2017-02-26 20:19:22 +01:00
parent 5a10f4ca6b
commit 5a60812786
9 changed files with 82 additions and 82 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ pfUI:RegisterModule("cooldown", function ()
this:Hide()
end
if this:GetParent() and this:GetParent():GetName() and getglobal(this:GetParent():GetName() .. "Cooldown") then
if not getglobal(this:GetParent():GetName() .. "Cooldown"):IsShown() then
if this:GetParent() and this:GetParent():GetName() and _G[this:GetParent():GetName() .. "Cooldown"] then
if not _G[this:GetParent():GetName() .. "Cooldown"]:IsShown() then
this:Hide()
end
end