public
Created

Loading Event for Backbone

  • Download Gist
loading.coffee
CoffeeScript
1 2 3 4 5
window.old_sync = Backbone.sync
 
Backbone.sync = (method, model, options) =>
old_sync(method, model, options)
model.trigger("loading")

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.