Skip to content

Instantly share code, notes, and snippets.

@Radagaisus
Created December 20, 2011 02:58
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 Radagaisus/1500028 to your computer and use it in GitHub Desktop.
Save Radagaisus/1500028 to your computer and use it in GitHub Desktop.
Loading Event for Backbone
window.old_sync = Backbone.sync
Backbone.sync = (method, model, options) =>
old_sync(method, model, options)
model.trigger("loading")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment