Create a gist now

Instantly share code, notes, and snippets.

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