mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
fix leak of global values
This commit is contained in:
@@ -68,7 +68,7 @@ local function LoadSkin()
|
||||
|
||||
S:SecureHookScript(containerFrame, "OnShow", "ContainerFrame_Update")
|
||||
|
||||
local itemButton, itemButtonIcon
|
||||
local itemButton, itemButtonIcon, itemButtonCooldown
|
||||
for k = 1, MAX_CONTAINER_ITEMS, 1 do
|
||||
itemButton = _G["ContainerFrame"..i.."Item"..k]
|
||||
itemButtonIcon = _G["ContainerFrame"..i.."Item"..k.."IconTexture"]
|
||||
|
||||
@@ -20,7 +20,7 @@ for k, v in pairs(LOCALIZED_CLASS_NAMES_FEMALE) do
|
||||
localizedTable[v] = k
|
||||
end
|
||||
|
||||
function LoadSkin()
|
||||
local function LoadSkin()
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.friends ~= true then return end
|
||||
|
||||
-- Friends Frame
|
||||
|
||||
@@ -112,6 +112,7 @@ local function LoadSkin()
|
||||
|
||||
local function QuestQualityColors(frame, text, quality, link)
|
||||
if link and not quality then
|
||||
local _
|
||||
_, _, quality = GetItemInfo(match(link, "item:(%d+)"))
|
||||
end
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ local pairs = pairs
|
||||
--WoW API / Variables
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
function LoadSkin()
|
||||
local function LoadSkin()
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.raid ~= true then return end
|
||||
|
||||
-- RaidFrame
|
||||
|
||||
@@ -10,7 +10,7 @@ local HasPetUI = HasPetUI
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
local UnitExists = UnitExists
|
||||
|
||||
function LoadSkin()
|
||||
local function LoadSkin()
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.stable ~= true then return end
|
||||
|
||||
E:StripTextures(PetStableFrame)
|
||||
|
||||
Reference in New Issue
Block a user