mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update
This commit is contained in:
@@ -120,7 +120,7 @@ end
|
||||
-- the user have always access to them, so we save the table cost here
|
||||
local events = AceEvent.events
|
||||
AceEvent.frame:SetScript("OnEvent", function()
|
||||
events:Fire(event, arg1, arg2, arg3, arg4, arg5)
|
||||
events:Fire(event)
|
||||
end)
|
||||
|
||||
--- Finally: upgrade our old embeds
|
||||
|
||||
@@ -46,10 +46,10 @@ if(not customClassColors()) then
|
||||
|
||||
local eventHandler = CreateFrame('Frame')
|
||||
eventHandler:RegisterEvent('ADDON_LOADED')
|
||||
eventHandler:SetScript('OnEvent', function(self)
|
||||
eventHandler:SetScript('OnEvent', function()
|
||||
if(customClassColors()) then
|
||||
self:UnregisterEvent('ADDON_LOADED')
|
||||
self:SetScript('OnEvent', nil)
|
||||
this:UnregisterEvent('ADDON_LOADED')
|
||||
this:SetScript('OnEvent', nil)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user