View Single Post
12-28-17, 07:02 AM   #2
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
By using setmetatable on ChatTypeInfo and setting the metatable's __index to a table or function. In this case it is a table.

It is the same reason you can iterate over pairs(CreateFrame("Frame")) and only see a key-value pair of [0] and userdata but still be able to access all of its methods such as Hide and Show.
  Reply With Quote