Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

Frame:UnregisterEvents

Last wiki revision 2008-01-05

Add this method to your frame to register multiple events.

local function UnregisterEvents(self, ...) for i=1,select('#', ...) do self:UnregisterEvent(select(i, ...)) end end

local frame = YourEventFrame frame.UnregisterEvents = UnregisterEvents -- Tell the API to stop listen for 'VARIABLES_LOADED', 'ADDON_LOADED', and 'MERCHANT_SHOW' frame:UnregisterEvents('VARIABLES_LOADED', 'ADDON_LOADED', 'MERCHANT_SHOW')

Or unregister events for a frame without attaching UnregisterEvents to the frame: local frame = YourEventFrame -- Tell the API to stop listen for 'VARIABLES_LOADED', 'ADDON_LOADED', and 'MERCHANT_SHOW' UnregisterEvents(frame, 'VARIABLES_LOADED', 'ADDON_LOADED', 'MERCHANT_SHOW')

Source

https://warcraft.wiki.gg/wiki/Frame:UnregisterEvents · 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.