Skip to content

Instantly share code, notes, and snippets.

@pixelkritzel
Created March 13, 2015 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pixelkritzel/6a472be5c733d42f8c99 to your computer and use it in GitHub Desktop.
Save pixelkritzel/6a472be5c733d42f8c99 to your computer and use it in GitHub Desktop.
Backbone - expose model cid to attribute object
App.Model = Backbone.Model.extend({
initialize: function() {
this.set('cid', this.cid);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment