View Single Post
02-08-12, 03:10 AM   #3
Animor
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 136
Thanks!

You said that "calling MyAddonisable() will automatically unregister all events/messages that were registered with your addon through AceEvent".

However, from the doc I understood that I have to put the UnregisterEvent myself in OnDisable() :
Code:
function MyAddon:OnDisable()
  -- Unhook, Unregister Events, Hide frames that you created.
  -- You would probably only use an OnDisable if you want to 
  -- build a "standby" mode, or be able to toggle modules on/off.
end
So did I understand it wrong?

Last edited by Animor : 02-08-12 at 03:22 AM.
  Reply With Quote