I have a backbone model where I have changed the set method to calculate extra attributes on every set of the model.
According to the docs this should be the way to call super in order to make sure the model is actually saved.
Backbone.Model.prototype.set.call(this, attributes, options);
And it works just as expected, unless I use Collection.create.
My custom set method gets run, but I think the original does not since the collection remains empty. The server receives the correct data and sends the right data back. On both occasions my method gets executed, but the collection is still empty.
Can I change the super call to make it work with Collection.create or is there another way to do the same thing?