This page documents 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.
User defined functions < Frame:UnregisterEvents

Add this method to your frame to register multiple events.

Code Edit

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

Example Edit

local frame = YourEventFrame
frame.UnregisterEvents = UnregisterEvents

-- Tell the API to stop listen for 'VARIABLES_LOADED', 'ADDON_LOADED', and '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'

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.