Skip to content

Instantly share code, notes, and snippets.

@led
Forked from bittersweetryan/async.js
Created July 28, 2012 14:51
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 led/3193663 to your computer and use it in GitHub Desktop.
Save led/3193663 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