Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: None  |  size: 0.13 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. window.old_sync = Backbone.sync
  2.  
  3. Backbone.sync = (method, model, options) =>
  4.   old_sync(method, model, options)
  5.   model.trigger("loading")