Lore archive · Warcraft Wiki, 2023 dump
API GetFramesRegisteredForEvent
Last wiki revision 2022-08-01
Returns all frames registered for the specified event, in dispatch order. frame1, frame2, ... = GetFramesRegisteredForEvent(event)
- event: - Event for which to return registered frames, e.g. "PLAYER_LOGOUT"
- frame1, ...:Widget - widget registered for the specified event.
- The first frame returned will be the first to receive the given event, and likewise the last returned will receive the event last. A frame can be moved to the end of this event list order by unregistering and then reregistering for the event.
- Currently, frames registered via will be returned before all other frames, but they will actually receive events last (as they are used to profile the normal frames' handlers). This suggests that the above ordering is not always reliable. (Last checked 8.3.7)
The snippet below unregisters the events from every frame listening for it local function unregister(event, widget, ...) if widget then widget:UnregisterEvent(event) return unregister(event, ...) end end unregister("PLAYER_LOGOUT", GetFramesRegisteredForEvent("PLAYER_LOGOUT"))
Source
https://warcraft.wiki.gg/wiki/API_GetFramesRegisteredForEvent · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.