Open
Description
Hi there,
After updating a sub-set of nested properties, calling model.changedAttributes will return the entire object instead of only the changed ones.
var book = new Backbone.NestedModel.model({
title: 'abook',
author: {
first_name: 'Jane',
last_name: 'Doe'
},
category: 'Mistery'
});
book.save();
...
book.set({
title: 'TheBook',
author: {
first_name: 'Jhon'
}
});
console.log(book.changedAttributes());
/* printed result is
{
title: 'TheBook',
author: {
first_name: 'Jhon',
last_name: 'Doe'
}
}
*/
Would it be possible to just return the changedAttributes?