Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement
This is a user-defined function that you can copy and paste into your addon.

Globally unregister event.

Code[]

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[]

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