Skip to content

Instantly share code, notes, and snippets.

@thomsbg
Created September 11, 2013 17:48
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 thomsbg/6527210 to your computer and use it in GitHub Desktop.
Save thomsbg/6527210 to your computer and use it in GitHub Desktop.
Mixing shared ajax functionality into a model
App.Mixins.Ajax = {
...
};
App.Models.Comment = Backbone.extend(_.extend({},
// Mixins
App.Mixins.Ajax, {
// Methods
initialize: function() {
...
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment