Skip to content

Instantly share code, notes, and snippets.

@Radagaisus
Created December 20, 2011 02:58
Show Gist options
  • Select an option

  • Save Radagaisus/1500028 to your computer and use it in GitHub Desktop.

Select an option

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