What do you think about define plugin API that would allow to define a
strategy for attributes merging?
For example something like that:
- var Todo = can.Model.extend({
- define: {
- users: {
- merge: false, // that would prevent merging of the attribute, and would just set it instead.
- replace: true // (intended to use for can.List attributes) that would prevent merge of the list and use replace with list
- }
- }
- },{
- });