nytimes / backbone.trackit

Manage unsaved changes in a Backbone Model.
202 stars 33 forks source link

Add ability to work with Backbone-relational #1

Open iAdramelk opened 11 years ago

iAdramelk commented 11 years ago

Hi! backbone.trackit is really good then working with single model, but then you try to work with nested models (and especially then you working with nested collections of models) it soon become very hard as you have to track changes in each model and track all their relations by hand.

It will be really great to have ability to do so automatically.

For example:

1.I have model Book.

  1. Book have fields like title, publisher and others.
  2. also book can have one or more Authors.
  3. All book meta, including Authors are edited on one page and I'd like to save and reset it automatically.
  4. Now to do so, I need to use startTrcking() on each model, remember id''s of author's models and reset all of that than I need to reset model.

I understand, that it not a part of the default Backbone functional, but it will be great to be able to do it somehow.

delambo commented 11 years ago

Are you using one of the popular extensions for nested models?

iAdramelk commented 11 years ago

Yes. i'm using http://backbonerelational.org