This commit is contained in:
Bunny67
2018-06-23 12:32:10 +03:00
parent aed8bec10e
commit 87e43e9a1c
11 changed files with 42 additions and 60 deletions
@@ -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
+3 -3
View File
@@ -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