Commit 5a201c9a authored by Rainrider's avatar Rainrider

core: handle pass-through events for eventless frames as unitless

Fixes #497
This is a regression introduced after #399 by #472
parent 1e3ab6d5
......@@ -116,7 +116,7 @@ function frame_metatable.__index:RegisterEvent(event, func, unitless)
table.insert(curev, func)
end
if(unitless) then
if(unitless or self.__eventless) then
-- re-register the event in case we have mixed registration
registerEvent(self, event)
if(self.unitEvents) then
......@@ -130,7 +130,7 @@ function frame_metatable.__index:RegisterEvent(event, func, unitless)
self:SetScript('OnEvent', onEvent)
end
if(unitless) then
if(unitless or self.__eventless) then
registerEvent(self, event)
else
self.unitEvents = self.unitEvents or {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment