You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
390 B

-- all this is is a frame that ensures that the SV is a table type
local addonName = ...
local loader = CreateFrame("Frame")
loader:RegisterEvent("ADDON_LOADED")
loader:SetScript("OnEvent", function(self, _, addon)
if addon == addonName then
if type(WeakAurasArchive) ~= "table" then
WeakAurasArchive = {}
end
self:UnregisterEvent("ADDON_LOADED")
end
end)