View Single Post
11-02-10, 09:38 AM   #17
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
You're on the right track. Ok, bear with me if there are typos, still at work.

lua Code:
  1. function myAddon:ADDON_LOADED(self, event, ...)
  2.     -- are there existing vars after everything is loaded?  If not, create them
  3.     GMovableFrames  = GMovableFrames or {}  -- put your defaults in the braces
  4.     self:UnregisterEvent(event)
  5. end

This is the simplest way to check your vars.
  Reply With Quote