Wikia

WoWWiki

Watchlist Recent changes

UnregisterEventFromAllFrames

This is a user-defined function that you can copy and paste into your addon. Replace <PREFIX> with your AddOn's prefix to avoid conflicts between different versions of these functions.

Globally unregister event.

Code Edit

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

local function UnregisterEventFromAllFrames(event)
	UnregisterEventFromAllFrames_helper(event, GetFramesRegisteredForEvent(event))
end

Example Edit

-- Globally unregister the event 'MERCHANT_SHOW'.
UnregisterEventFromAllFrames('MERCHANT_SHOW')

Pages on WoWWiki

94,193pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,622photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki