Skip to content

Instantly share code, notes, and snippets.

@krusty
Created March 12, 2012 16:45
Show Gist options
  • Save krusty/2023258 to your computer and use it in GitHub Desktop.
Save krusty/2023258 to your computer and use it in GitHub Desktop.
fetch: function (options) {
this.trigger('fetching');
var new_options = _.clone(options);
new_options.success = function (arguments) {
options.success.call(arguments);
this.trigger('done');
}
Backbone.Model.prototype.fetch.call(this, new_options);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment