I have a hierarchic javascript object that I pass to kendo observable. Is it better to use get and set on the top-level object with dotted path into the object?
Or is it better to use get and set on the lowest level of the hierarchy?
Here is a simple jsfiddle sample that demonstrates that both forms work. I just want to know if there is any difference that I should be aware of.
http://jsfiddle.net/ebLxk7at/
Thanks,
randall.
viewModel.get('current.prType');
Or is it better to use get and set on the lowest level of the hierarchy?
viewModel.current.get('prType');
Here is a simple jsfiddle sample that demonstrates that both forms work. I just want to know if there is any difference that I should be aware of.
http://jsfiddle.net/ebLxk7at/
Thanks,
randall.