You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an Object is part of a Class defaults and this Class is extended with defaults having a different Object with the same property name. The super Class defaults Object properties will be overwritten.
@Mamuuut commented on Thu Sep 06 2018
If an Object is part of a Class defaults and this Class is extended with defaults having a different Object with the same property name. The super Class defaults Object properties will be overwritten.
Here is an example with CanJS v4:
https://codepen.io/Mamuuut/pen/oPGLgE
It was not the case in v3:
https://codepen.io/Mamuuut/pen/OoxXPq?editors=1111
And it still is in v5:
https://codepen.io/Mamuuut/pen/bKyryV
This seems related to the can Construct setup method:
assignDeepMap does not create a deep copy of the base.defaults and then those are overwritten by this.defaults…
@justinbmeyer commented on Thu Sep 06 2018
Can you try:
Let me know if this works. Thanks!
@Mamuuut commented on Fri Sep 07 2018
It works:
https://codepen.io/Mamuuut/pen/MqEMaa
Thanks!
The text was updated successfully, but these errors were encountered: