Skip to content

Instantly share code, notes, and snippets.

@bittersweetryan
Created July 27, 2012 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bittersweetryan/3188783 to your computer and use it in GitHub Desktop.
Save bittersweetryan/3188783 to your computer and use it in GitHub Desktop.
app.ContactCollection = Backbone.Collection.extend({
model : Contact,
initialize : function(){
var self = this;
this.fetch({
success : function(){
self.trigger("load");
}
});
},
url : 'contacts/'
});
app.contacts = new app.ContactCollection()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment