I've been studying Backbone.js for a few weeks, and I feel comfortable using views with models, routers, and collections.
I still have some big gaps:
What is the connection between
id,cid, andidAttribute? How do they affect each other?When exactly does a new model get its ID? Is the server responsible for assigning it? Do I need to add it to the
defaultsof the model (maybe as a function)? Maybe theaddNewModelfunction should do that?