Fix/module proxy multiple inheritance#124
Conversation
|
Threw me for a bit - this is just fixing inheritance, not introducing multiple inheritance. Tests pass on master so I'm worried if this broke one about Will take a closer review look later today. |
|
Yeah, true, sorry abut the confusion. There probably is a more elegant way to handle those hard coded names (though we do the same thing with constructor) and it probably is harmless to bind In my testing, everything works as expected except with the |
loppear
left a comment
There was a problem hiding this comment.
Doesn't work with autobind because that actually creates a getter/setter property, so its skipped. So let's go back a step, presumably the initial bug for this PR is that you can't use superclass methods as proxy methods - that's a bug for sure, and presumably I had some reason for hasOwnProperty rather than letting it pick up all the property names... Do you recall what issues came up with ModuleProxy binding to getters, config, log, etc that you added that part in?
|
@loppear the current test |
|
Yeah I see, doesn't break |
|
@loppear sounds good! I like the approach. I’ll try on a couple of apps and let you know if I run into bugs. |
Pretty straightforward recursion to include multiple levels of inheritance for module proxy methods.
@loppear the thing I wasn't sure about what the test fixes - some of those config tests were broken but probably from before? I fixed but could use your eyes.