Lore archive · Warcraft Wiki, 2023 dump
API Frame UnregisterEvent
Last wiki revision 2023-08-21
Unregisters an event from the frame. registered = Frame:UnregisterEvent(eventName)
- eventName: - Name of the frame event.
- registered: - Returns true if the event was successfully unregistered, false if already unregistered. Throws an error is the event is invalid.
- It's generally a good practice to unregister from events when no longer needed.
- For example, a frame which monitors target health does not need to receive the UNIT_HEALTH event while the player has no target.
- An addon that sorts the contents of the player's bags can register for the BAG_UPDATE event to keep track of when items are picked up, but unregister from the event while it performs its sorting.
Source
https://warcraft.wiki.gg/wiki/API_Frame_UnregisterEvent · 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.