documentcloud/backbone — pull request #847 by tadeuzagallo (2012-01-07 01:20:55+00:00)
Title: ID for Backbone.Model loaded from properties

Changing the Backbone.Model.id for an String allows the user to get an id from the model properties.
It makes easier to prevent data retrieved from the Backbone.Collection.fetch be added twice once that this way you can use the id from the db to the model.
I had some difficulties with this retrieving data directly from mongodb, so this way I could use '_id' provided by mongo as model id.
hope it's useful.