The blog of developer Timo Zöller

Note to myself: Backbone – expose model cid to attributes object

Sometimes you need the cid of your backbone model in your view. Backbone doesn’t provide it in its attributes property. But you can’t add the ID there manually in the initialize method:

App.Model = Backbone.Model.extend({
  initialize: function() {
    this.set('cid', this.cid);