Oh, right, I see your point now.
Still, on a second look at your code, you are passing self as argument to self.anchorFrame.Attach(self) and to self.anchorFrame.Detach(self). You then call frame methods on self that I believe you want to be called on self.anchorFrame instead.
I'm unsure about this, but that may be the problem. If I'm right, the easy fix would be to use self.anchorFrame as prefix to :SetParent, etc.
|