Replacing table.wipe with Details:Destroy()
This commit is contained in:
@@ -105,10 +105,10 @@ function Details:OpenForge()
|
||||
f:SetScript("OnHide", function()
|
||||
for _, module in ipairs(all_modules) do
|
||||
if (module.data) then
|
||||
wipe (module.data)
|
||||
Details:Destroy (module.data)
|
||||
end
|
||||
end
|
||||
wipe (spell_already_added)
|
||||
Details:Destroy (spell_already_added)
|
||||
end)
|
||||
|
||||
f.bg1 = f:CreateTexture(nil, "background")
|
||||
@@ -438,7 +438,7 @@ function Details:OpenForge()
|
||||
local filter_name = DetailsForgeAllSpellsNameFilter:GetText()
|
||||
local lower_FilterCaster = lower (filter_caster)
|
||||
local lower_FilterSpellName = lower (filter_name)
|
||||
wipe (spell_already_added)
|
||||
Details:Destroy (spell_already_added)
|
||||
|
||||
local SpellPoll = Details.spell_pool
|
||||
for spellID, className in pairs(SpellPoll) do
|
||||
@@ -582,7 +582,7 @@ function Details:OpenForge()
|
||||
local lower_FilterSpellName = lower (filter_name)
|
||||
local lower_FilterEncounterName = lower (filter_encounter)
|
||||
|
||||
wipe (spell_already_added)
|
||||
Details:Destroy (spell_already_added)
|
||||
|
||||
local SpellPoll = Details.encounter_spell_pool
|
||||
for spellID, spellTable in pairs(SpellPoll) do
|
||||
|
||||
Reference in New Issue
Block a user