WoWInterface - View Single Post - AceEvent-3.0 tricked into registering non-existent events??
View Single Post
04-14-21, 02:39 PM   #15
A Pyroguard Emberseer
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,186
Originally Posted by LudiusMaximus View Post
AceEvent-3.0-4.lua:37: Attempt to unregister unknown event "Nonsense_Event"
If that is what you see for unknown events, then AceEvent is registering by table, a table that has a list of events assigned to the frame. It is the second method I suggested, not the first.

Clearly, AceEvent does not validate events before adding them to the frame's table. As per the thread's title, no, AceEvent is NOT being tricked into registering non-existent events. It is up to the addon author using AceEvent to do the validation, or simply never use events that don't exist. Which is what 99.9999999999% of authors do in their projects.

I can see why there is no validation in AceEvent. Considering the ever-increasing quantity of events, that would bloat AceEvent's code for no gain.
  Reply With Quote