View Single Post
07-19-16, 11:23 AM   #3
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
You can get the original metatable of the frame and set that as your new metatable's metatable, eg.
Lua Code:
  1. local f = CreateFrame('frame')
  2. local mt = {
  3.     foo = function()
  4.         print('bar')
  5.     end
  6. }
  7. setmetatable(f, { __index = setmetatable(mt, getmetatable(f)) })
  8. f.foo()
  9. print(f.SetBackdropColor)
  Reply With Quote