1 | initial version |
You just need to add a parent()
method to the appropriate object. Since I don't know how these objects are defined, I can't give you an example, but you should be able to work it out by searching the source code for where the parent()
method is getting called, and adding such a method to the objects you're using. An easy way to do that would be to define a subclass, define the parent()
method there, and then use instances of the subclass instead of the original class.