Originally Posted by Vrul
Looks like the addon you are trying to update is using the old global this, change this to self and see if you get a new error.
|
This (pun intended)
...but often it will complain about 'this' specifically not 'frame' so it may be that frame is assigned to this or that the frame needs to be passed in (with this being OnLoad that's unlikely so it's possibly a reference) to something that's assuming a 'this' in a called function.
One way of resolving "this" that I've done in the various hackery I've been doing since 4.x, since self is passed as the 1st parameter very often, is convert ModName:FunctionName() to ModName:FunctionName(this) or (this, arg1) for some oldies-but-goodies -- just to save myself some re-typing -- and it's resolved a lot of those "frame or object is nil" issues. Sometimes you have to also take a calling function and force the pass ( somedamnfunction() to somedamnfunction(object, args) )
If none of that is of any help, shoot me a PM and I'll d/l the mod and take a peek.