New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Y.Base.create doesn't aggregate/copy static properties from superclass #773
Comments
It is the intended behavior that |
Thanks for the clarification Eric. Yeah it seems really odd to me. How do I go about requesting this change? Also the documentation is misleading as it refers to the Base/Main class declaring the static property (I suspect referring to the actual class being created) however the second argument to |
@unkillbob IIRC, last time @sdesai and I talked about this we thought this is a worthy enhancement. This change is probably tricky to implement, so this ticket can serve as the enhancement request for this change. |
@ericf thanks, in the meantime we've managed to work around it using a
|
What's the status on ignoring Perhaps the documentation could at least link to this issue? @unkillbob Thanks for the code snippet. How did you proceed with this bug? Do you also still use the workaround? |
@cquinders we're still using the workaround |
Y.Base.create will search the superclass (2nd argument to
create()
) for the static_buildCfg
property to determine how to treat static properties but it doesn't actually copy/aggregate any of the mentioned properties on the superclass, only the mixed in extensions (3rd argument tocreate()
).This JsFiddle demonstrates the issue: http://jsfiddle.net/MbqLa/1/
Is this behaviour intended? Have I misinterpreted how this is all supposed to work?
The text was updated successfully, but these errors were encountered: