In canJS I can set a model property with person.attr('name', 'John Doe');
, but sometimes that property contains nested data, so I need to do the following:
var address = person.attr('address');
// Update country
address.country = 'USA';
person.attr('address', address);
Is there a shorter solution for this in canJS?