View Single Post
12-31-18, 07:59 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Code:
function Slot:is_a()
adds the method to the table when it is "built". Later when you call Slot:_init()
Code:
local s = Slot(1,1)
Code:
self.is_a = "Slot"
overwrites the function(method) with the string causing
Code:
DEFAULT_CHAT_FRAME:AddMessage( s:is_a() )
to try and run it as a method when it's now a string.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 12-31-18 at 08:14 PM.
  Reply With Quote