@jgomo3 wrote:
I’m using the minilanguaje of KeyName arguments in methods like get and set to access nested properties in some Ember Objects. I’m following this Recomendation to access nested properties cleanly.
So, I use:
obj.get("a.b.c")
instead ofobj.get("a").get("b").get("c")
.But I have an example in my code where both expressions return different values:
obj.get("a.b.c")
returnsnull
obj.get("a").get("b").get("c")
returns the expected valueSo, I fear I have to change my code to the later style. But before that, and before reporting here a bug in my code asking for help, I just want to understand well the interpretation of that KeyName argument of get or set.
So, how does it work?
And …:
Is it guarantied that the method get or set is called recursivelly over the nested properties, or it is being called only once?
Posts: 1
Participants: 1