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
+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