Thread: Global vars ?
View Single Post
11-02-14, 01:48 AM   #12
AlleyKat
A Warpwood Thunder Caller
 
AlleyKat's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 93
Originally Posted by Voyager View Post
Couldn't one just do the following?
Code:
local title, M = ...;
M = CreateFrame("Frame", title);

M:RegisterEvent(event, function(self, ...)
-- ...
-- where self == M and self[key] == M[key]
end);
now key from frame ~= key from build-in table
  Reply With Quote