fix leak of global values

This commit is contained in:
Pinya
2018-07-18 15:08:04 +03:00
parent c60324af12
commit 8b44916c87
9 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ function B:UpdateSlot(bagID, slotID)
if B.ProfessionColors[bagType] then
slot:SetBackdropBorderColor(unpack(B.ProfessionColors[bagType]))
elseif clink then
local iLvl, itemEquipLoc
local _, iLvl, itemEquipLoc
slot.name, _, slot.rarity, iLvl, _, _, _, itemEquipLoc = GetItemInfo(match(clink, "item:(%d+)"))
local r, g, b
+1 -1
View File
@@ -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"]
+1 -1
View File
@@ -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
+1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)